|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
|
<dl> wrote in message news:uzsBPj0dFHA.3488@tk2msftngp13.phx.gbl... Sorry here's some VB.Net that sets the focus to the textbox DistMgrNumber.> Hi > How do we set focus onto a textbox control ? (in c# please!) > > TIA Note that clientID is a property. You may wish to google or MSN RegisterStartUpScript .....snipit Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load If Not IsPostBack Then Me.setProgramTypePanelVisibility(Me.ddlProgramType.SelectedValue) End If If Not Page.IsStartupScriptRegistered("DistFocusScript") Then Page.RegisterStartupScript("DistFocusScript", Me.getDistFocusScript) End Sub .... do stuff Private Function getDistFocusScript() As String Dim sb As New System.Text.StringBuilder sb.Append("<script language=""javascript"">") sb.AppendFormat("document.Form1.{0}.focus();", Me.tbDMNumber.ClientID) sb.Append("</script>") Return sb.ToString End Function
Strange Error when viewing page
Disable Submit Button get the value of dropdownList check if image or file exists Target property of ASP hyperlink? List'o MyProj CSS Elements? View DataSet Relational Data DataGrid edit mode how to insert text into middle of textarea TreeView ASP.Net subtree.all is null or not an object -- Pls HELP! |
|||||||||||||||||||||||