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: ,

Comments

Popular posts from this blog

Displaying alert message from server side(ASP.NET1.1)

Row_Number()

Computed column