Setting focus on a control (ASP.NET1.1)
Protected Sub SetFocus(ByVal ctrl As WebControl)
' Define the JavaScript function for the specified control.
Dim focusScript As String = ""
' Add the JavaScript code to the page.
Page.RegisterStartupScript("FocusScript", focusScript)
End Sub
Technorati Tags: ASP.NET1.1,setfocus
Comments