Click here to Skip to main content
15,912,329 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: TableAdapter info Pin
sanju027629-Sep-06 9:34
sanju027629-Sep-06 9:34 
Questionphp Pin
amaneet29-Sep-06 6:39
amaneet29-Sep-06 6:39 
AnswerRe: php Pin
nguyenvhn29-Sep-06 16:24
nguyenvhn29-Sep-06 16:24 
Questionphp Pin
amaneet29-Sep-06 6:25
amaneet29-Sep-06 6:25 
AnswerRe: php Pin
Not Active29-Sep-06 7:35
mentorNot Active29-Sep-06 7:35 
QuestionWeb Control Designing Questions Pin
Xiaoming Qian29-Sep-06 4:41
Xiaoming Qian29-Sep-06 4:41 
QuestionKeeping focus on control after postback?? Pin
Goalie3529-Sep-06 3:54
Goalie3529-Sep-06 3:54 
AnswerRe: Keeping focus on control after postback?? Pin
postmaster@programmingknowledge.com29-Sep-06 4:48
postmaster@programmingknowledge.com29-Sep-06 4:48 
Add this function into 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



Call the function above from your from passing control to be focused:

RegisterStartupScript("setFocus", Utilities.SetFocus(TextBox1))



==postmaster
www.programmingknowledge.com
AnswerRe: Keeping focus on control after postback?? Pin
Not Active29-Sep-06 5:38
mentorNot Active29-Sep-06 5:38 
AnswerRe: Keeping focus on control after postback?? Pin
amaneet29-Sep-06 6:29
amaneet29-Sep-06 6:29 
GeneralRe: Keeping focus on control after postback?? Pin
Not Active29-Sep-06 7:32
mentorNot Active29-Sep-06 7:32 
QuestionGridView RowCommand Pin
John Gathogo29-Sep-06 3:24
John Gathogo29-Sep-06 3:24 
AnswerRe: GridView RowCommand Pin
Sathesh Sakthivel29-Sep-06 3:49
Sathesh Sakthivel29-Sep-06 3:49 
AnswerRe: GridView RowCommand Pin
Kschuler29-Sep-06 11:08
Kschuler29-Sep-06 11:08 
Questionmailto: Issue Pin
Brendan Vogt29-Sep-06 2:34
Brendan Vogt29-Sep-06 2:34 
AnswerRe: mailto: Issue Pin
Paddy Boyd29-Sep-06 2:47
Paddy Boyd29-Sep-06 2:47 
QuestionAccess Data Source > Loop Pin
shapper29-Sep-06 2:24
shapper29-Sep-06 2:24 
AnswerRe: Image refresh in a page Pin
albCode29-Sep-06 2:42
albCode29-Sep-06 2:42 
QuestionImage refresh in a page Pin
Uma Kameswari29-Sep-06 2:19
Uma Kameswari29-Sep-06 2:19 
AnswerRe: Image refresh in a page Pin
Sathesh Sakthivel29-Sep-06 2:41
Sathesh Sakthivel29-Sep-06 2:41 
GeneralRe: Image refresh in a page Pin
Uma Kameswari29-Sep-06 2:46
Uma Kameswari29-Sep-06 2:46 
GeneralRe: Image refresh in a page Pin
Sathesh Sakthivel29-Sep-06 2:54
Sathesh Sakthivel29-Sep-06 2:54 
AnswerRe: Image refresh in a page Pin
Paddy Boyd29-Sep-06 2:53
Paddy Boyd29-Sep-06 2:53 
QuestionQueryString Function Pin
John Gathogo29-Sep-06 2:05
John Gathogo29-Sep-06 2:05 
AnswerRe: QueryString Function Pin
Guffa29-Sep-06 2:38
Guffa29-Sep-06 2: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.