J JAPHET Oct 29, 2004 #1 Plz Help How to set focus on a text box for VB.Net web form. Thanx in Advance.
S Saravana Oct 29, 2004 #2 Check out this code snippet, http://www.extremeexperts.com/Net/CodeSnippets/SettingFocustoElementAfterPostback.aspx
Check out this code snippet, http://www.extremeexperts.com/Net/CodeSnippets/SettingFocustoElementAfterPostback.aspx
S Shiva Oct 29, 2004 #3 There is one way: In the .aspx file, add the onLoad attribute as in: <body onLoad="document.forms[0].<%= TextBox.ClientID %>.focus();"> .... Plz Help How to set focus on a text box for VB.Net web form. Thanx in Advance.
There is one way: In the .aspx file, add the onLoad attribute as in: <body onLoad="document.forms[0].<%= TextBox.ClientID %>.focus();"> .... Plz Help How to set focus on a text box for VB.Net web form. Thanx in Advance.