Click here to Skip to main content
15,891,033 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: ASP.NET book recommendations Pin
Drew McGhie17-Sep-06 11:26
Drew McGhie17-Sep-06 11:26 
GeneralRe: ASP.NET book recommendations Pin
Kevin McFarlane17-Sep-06 11:53
Kevin McFarlane17-Sep-06 11:53 
QuestionDB Connection: Login Failure Pin
Vodstok15-Sep-06 9:52
Vodstok15-Sep-06 9:52 
Questionfile copy Pin
JMichael246815-Sep-06 9:12
JMichael246815-Sep-06 9:12 
AnswerRe: file copy Pin
Guffa15-Sep-06 9:31
Guffa15-Sep-06 9:31 
Questionselection of text in textbox in asp.net with vb.net Pin
amaneet15-Sep-06 7:31
amaneet15-Sep-06 7:31 
AnswerRe: selection of text in textbox in asp.net with vb.net Pin
_mubashir15-Sep-06 9:55
_mubashir15-Sep-06 9:55 
AnswerRe: selection of text in textbox in asp.net with vb.net Pin
postmaster@programmingknowledge.com15-Sep-06 10:22
postmaster@programmingknowledge.com15-Sep-06 10:22 
Create a public function in your global module

    Public Function SetFocus(ByVal FocusControl As Control) As String<br />
        'Setting focus to supplied control<br />
        Dim Script As New System.Text.StringBuilder<br />
        Dim ClientID As String = FocusControl.ClientID<br />
<br />
        'Building java script<br />
        With Script<br />
            .Append("<script language='javascript'>")<br />
            .Append("document.getElementById('")<br />
            .Append(ClientID)<br />
            .Append("').focus();")<br />
            .Append("</script>")<br />
        End With<br />
<br />
        Return Script.ToString()<br />
    End Function



From your aspx form call that function to set focus on your textBox

'set focus <br />
RegisterStartupScript("setFocus", Utilities.SetFocus(txtName))


postmaster
www.programmingknowledge.com[^]
Questionmenu Items in asp.net 1.1(vb.net) Pin
amaneet15-Sep-06 5:56
amaneet15-Sep-06 5:56 
Questionproblem SQLHelperExtension.Fill Pin
raquidd2215-Sep-06 5:55
raquidd2215-Sep-06 5:55 
QuestionASP.NET 1.1 (VB) - POST form to a different URL - How? Pin
RobSchripsema15-Sep-06 5:41
RobSchripsema15-Sep-06 5:41 
AnswerRe: ASP.NET 1.1 (VB) - POST form to a different URL - How? Pin
Guffa15-Sep-06 6:48
Guffa15-Sep-06 6:48 
GeneralRe: ASP.NET 1.1 (VB) - POST form to a different URL - How? Pin
RobSchripsema15-Sep-06 6:56
RobSchripsema15-Sep-06 6:56 
GeneralRe: ASP.NET 1.1 (VB) - POST form to a different URL - How? Pin
Guffa15-Sep-06 8:45
Guffa15-Sep-06 8:45 
QuestionProblem in creating a file on win2003 Server using dotnet 1.1 Pin
Rizwan Bashir15-Sep-06 5:07
Rizwan Bashir15-Sep-06 5:07 
QuestionLibrary management Pin
amaneet15-Sep-06 5:05
amaneet15-Sep-06 5:05 
AnswerRe: Library management Pin
Not Active15-Sep-06 6:08
mentorNot Active15-Sep-06 6:08 
GeneralRe: Library management Pin
amaneet15-Sep-06 6:52
amaneet15-Sep-06 6:52 
GeneralRe: Library management Pin
postmaster@programmingknowledge.com15-Sep-06 6:53
postmaster@programmingknowledge.com15-Sep-06 6:53 
GeneralRe: Library management Pin
amaneet15-Sep-06 7:06
amaneet15-Sep-06 7:06 
GeneralRe: Library management Pin
Not Active15-Sep-06 8:33
mentorNot Active15-Sep-06 8:33 
GeneralRe: Library management Pin
postmaster@programmingknowledge.com15-Sep-06 9:00
postmaster@programmingknowledge.com15-Sep-06 9:00 
Questionhow FormsAuthentication.SignOut() behaves Pin
harshActsw15-Sep-06 4:54
harshActsw15-Sep-06 4:54 
AnswerRe: how FormsAuthentication.SignOut() behaves Pin
Not Active15-Sep-06 6:00
mentorNot Active15-Sep-06 6:00 
QuestionSecured Socket Layers in vb.net 1.1 Pin
amaneet15-Sep-06 4:38
amaneet15-Sep-06 4:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.