Luis Murguía
7/22/2005 11:40:00 PM
unfortunately i didn't find any information. I think the problem is the
incapacity of the mobile project to run javascript.
If we found some alternative option it would be useful, by the way i really
need a solution of this.
That is the reason of Microsoft sucks!!!
"Wade" wrote:
> Same here, I used regular ASP.NET not Mobile ASP.NET, I can get the
> textbox to trigger and process the data from a bar code scan once I
> manually select the textbox but I can not get it to automaticly set
> focus to the textbox. In normal IE on a PC I use the following code and
> focus works fine.
>
> Private Sub SetFocus(ByVal FocusControl As Control)
>
> Dim Script As New System.Text.StringBuilder
> Dim ClientID As String = FocusControl.ClientID
>
> With Script
> .Append("<script language='javascript'>")
> .Append("document.getElementById('")
> .Append(ClientID)
> .Append("').focus();")
> .Append("</script>")
> End With
>
> RegisterStartupScript("setFocus", Script.ToString())
>
> End Sub
>
> I really need to get this to work.
>
> Any help would be useful.
>
>