473,396 Members | 2,068 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

probably wont get a response on this, tab question

Hi, noticed high activity on this newsgroup as the last few posts I have made
have not received a response. Anyhow I noticed that with a .NET web
application when the webform opens if the user hits the tab key it goes to
the address bar at the top of the browser. I would like it to go to a
control and have set the tab index to 0 and 1 but still goes to the address
bar. Thanks.
--
Paul G
Software engineer.
Nov 19 '05 #1
4 1199
Setting the tab index is the first step. You'll probably want to decide on
what control get focus when the form is displayed, then add some javascript
to the onLoad of the <body> tag.

ie<body onLoad="document.forms[0].controlName.focus();">

Then your tab order will be followed.

Dave

"Paul" <Pa**@discussions.microsoft.com> wrote in message
news:59**********************************@microsof t.com...
Hi, noticed high activity on this newsgroup as the last few posts I have made have not received a response. Anyhow I noticed that with a .NET web
application when the webform opens if the user hits the tab key it goes to
the address bar at the top of the browser. I would like it to go to a
control and have set the tab index to 0 and 1 but still goes to the address bar. Thanks.
--
Paul G
Software engineer.

Nov 19 '05 #2
Hi thanks for the response. I added script as you described for the first
control to get focus. I have dropdown list boxes inbedded in a datagrid, I
think they call it template columns. I have the index set to 1,2,3 for these
but it does not seem to work. Perhaps I need to set the tab order for grid
=1, then embedded dropdown boxes as 2,3,4.
<script language="javascript" event="onload" for="window">
Form1.dropdown.focus();
</script>

"David Young" wrote:
Setting the tab index is the first step. You'll probably want to decide on
what control get focus when the form is displayed, then add some javascript
to the onLoad of the <body> tag.

ie<body onLoad="document.forms[0].controlName.focus();">

Then your tab order will be followed.

Dave

"Paul" <Pa**@discussions.microsoft.com> wrote in message
news:59**********************************@microsof t.com...
Hi, noticed high activity on this newsgroup as the last few posts I have

made
have not received a response. Anyhow I noticed that with a .NET web
application when the webform opens if the user hits the tab key it goes to
the address bar at the top of the browser. I would like it to go to a
control and have set the tab index to 0 and 1 but still goes to the

address
bar. Thanks.
--
Paul G
Software engineer.


Nov 19 '05 #3
This is going to be difficult, unless you can guarantee that IE will be used
by all users. IE supports tab indices, but most (If not all) other browsers
do not.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"Paul" <Pa**@discussions.microsoft.com> wrote in message
news:59**********************************@microsof t.com...
Hi, noticed high activity on this newsgroup as the last few posts I have
made
have not received a response. Anyhow I noticed that with a .NET web
application when the webform opens if the user hits the tab key it goes to
the address bar at the top of the browser. I would like it to go to a
control and have set the tab index to 0 and 1 but still goes to the
address
bar. Thanks.
--
Paul G
Software engineer.

Nov 19 '05 #4
thanks for the response. IE is used by all users as this is for an internal
web application. I was able to get it to work, just set the tabindex in
html.
<asp:TemplateColumn>
<ItemTemplate>
<asp:DropDownList id=dr_lst_poc tabIndex="5" runat="server"
Font-Size="X-Small" Font-Names="arial narrow" DataValueField="Poc_Id"
DataTextField="Poc_Name_VC" DataSource="<%# Ds_pocinfo1 %>"
AutoPostBack="True">
</asp:DropDownList>
</ItemTemplate>
</asp:TemplateColumn>
I also have a Column with a selectable button, but noticed the tabindex is
not supported in the html section.
<asp:EditCommandColumn ButtonType="PushButton" UpdateText="Update"
HeaderText=" Changes" CancelText="Cancel"
EditText="Accept">
<HeaderStyle Font-Size="Small" Font-Names="Arial
Narrow"></HeaderStyle><ItemStyle Font-Size="X-Small" Font-Names="Arial
Narrow"></ItemStyle>
</asp:EditCommandColumn>
"Kevin Spencer" wrote:
This is going to be difficult, unless you can guarantee that IE will be used
by all users. IE supports tab indices, but most (If not all) other browsers
do not.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"Paul" <Pa**@discussions.microsoft.com> wrote in message
news:59**********************************@microsof t.com...
Hi, noticed high activity on this newsgroup as the last few posts I have
made
have not received a response. Anyhow I noticed that with a .NET web
application when the webform opens if the user hits the tab key it goes to
the address bar at the top of the browser. I would like it to go to a
control and have set the tab index to 0 and 1 but still goes to the
address
bar. Thanks.
--
Paul G
Software engineer.


Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Catherine | last post by:
I am having a problem viewing asp pages on iis version 5.1 xp pro. HTML pages are viewable on http://localhost but .asp pages are not. I have created a test program called timetest.asp with the...
0
by: Bob Ranck | last post by:
More on earlier thread "Base Form that wont go away" Response to Chris Dunaway dunawayc@lunchmeatsbcglobal.net Here is the code snippet that calls the working form in the MDI. I actually...
0
by: Mark | last post by:
Hi - I'm using ASP.Net 1.1 with VS.Net 2003. I have a file upload/download web app - it uploads great, but my download function doesn't work for SWF files. If I type the complete path to them...
7
by: Matt | last post by:
I've asked this question to some developers that are much more experienced than I, and gotten different answers --- and I can't find anything about it in the documentation. Dim vs. Private as a...
10
by: sandraz444 | last post by:
I have an expression in the query under my form to autofill the date under a certain condition but it wont write to the underlying table?? The date shows in the form but not the table. Does anyone...
7
by: Ivan Jericevich | last post by:
For some reason the update does not change the data in the database. It was working fine before, I checked that the bindingsource and tableadapter are still on the form....what else could be wrong?...
7
by: moondaddy | last post by:
I'm running a wpf windows app and want to add the appSettings element to the config file. when I do, the app wont start up and I get the following error: {"The type initializer for...
7
by: =?Utf-8?B?dmJ0cnlpbmc=?= | last post by:
I am using a switch statement, to check for valid user hours. If the hours control is blank, I want to place the cursor back to the hours control for the user. The following code does NOT work:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.