set default cursor position

  • Thread starter Thread starter Grey
  • Start date Start date
Here is one way to do it (using body onLoad event):

<body onLoad='<%= "window.document.forms[0]." + TextBoxID.ClientID +
".focus();" %>'>
OR
<body onLoad='window.document.forms[0].<%= TextBoxID.ClientID %>.focus();'>

how to set the default cursor position to the one textbox in asp.net
 
Back
Top