hallo,
I would like to have the google effect: when someone open a page the focus is automatically on the search textbox.
I did like this:
And this works on my local server, but as soon as I upload the page it doesn't work anymore... the debugger tell me that focus is not a member of textbox. In the MSDN library I found out that actually there is not a focus method for:
System.Web.UI.WebControls > TextBox Class. But there is one for:
System.Web.UI.MobileControls > TextBox Class ....
So, in the end I don't understand: why it does work locally and not on the remote server... and I don't know how to achieve this. Could I just import the mobilecontrol namespace? my application is a normal website so I don't know if it would makes sense. Does someone knows? thanks
I would like to have the google effect: when someone open a page the focus is automatically on the search textbox.
I did like this:
Code:
sub Page_Load(obj as object, e as eventargs)
tbSearch.focus()
end sub
And this works on my local server, but as soon as I upload the page it doesn't work anymore... the debugger tell me that focus is not a member of textbox. In the MSDN library I found out that actually there is not a focus method for:
System.Web.UI.WebControls > TextBox Class. But there is one for:
System.Web.UI.MobileControls > TextBox Class ....
So, in the end I don't understand: why it does work locally and not on the remote server... and I don't know how to achieve this. Could I just import the mobilecontrol namespace? my application is a normal website so I don't know if it would makes sense. Does someone knows? thanks