Focus is going on address bar
-
I have aspx page containing dropdown, textbox,divs , panel and buttons i have set the tabindex property of each control. when page load i set the focus on a drop down by using this function Private sub Setfocus(Byval Ctrl as control) Dim Fs as string ="document.getElementById('" + ctrl.ClientId + "').focus();" Page.RegsisterStartUp("FOCUSSCRIPT",FS) End Sub Now when i press tab the focus goes on address bar first then comes to second control What will be the reason?? Note: I am using ASP.Net 1.1 Please Help Its Urgent
One person's data is another person's program. --J.Walia
-
I have aspx page containing dropdown, textbox,divs , panel and buttons i have set the tabindex property of each control. when page load i set the focus on a drop down by using this function Private sub Setfocus(Byval Ctrl as control) Dim Fs as string ="document.getElementById('" + ctrl.ClientId + "').focus();" Page.RegsisterStartUp("FOCUSSCRIPT",FS) End Sub Now when i press tab the focus goes on address bar first then comes to second control What will be the reason?? Note: I am using ASP.Net 1.1 Please Help Its Urgent
One person's data is another person's program. --J.Walia
why dont you use ctrl.focus() property why you want to register startup srcipt. actually focus goes to address bar only in the case when we start tabindex from zero.. locate in your code if you have set tabindex to zero. try to start it from 1 your problem will be sovled....
Government Dyal Singh College Lahore.
-
why dont you use ctrl.focus() property why you want to register startup srcipt. actually focus goes to address bar only in the case when we start tabindex from zero.. locate in your code if you have set tabindex to zero. try to start it from 1 your problem will be sovled....
Government Dyal Singh College Lahore.