473,802 Members | 2,432 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1214
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="documen t.forms[0].controlName.fo cus();">

Then your tab order will be followed.

Dave

"Paul" <Pa**@discussio ns.microsoft.co m> wrote in message
news:59******** *************** ***********@mic rosoft.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="javas cript" 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="documen t.forms[0].controlName.fo cus();">

Then your tab order will be followed.

Dave

"Paul" <Pa**@discussio ns.microsoft.co m> wrote in message
news:59******** *************** ***********@mic rosoft.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**@discussio ns.microsoft.co m> wrote in message
news:59******** *************** ***********@mic rosoft.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:TemplateCo lumn>
<ItemTemplate >
<asp:DropDownLi st 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="T rue">
</asp:DropDownLis t>
</ItemTemplate>
</asp:TemplateCol umn>
I also have a Column with a selectable button, but noticed the tabindex is
not supported in the html section.
<asp:EditComman dColumn ButtonType="Pus hButton" UpdateText="Upd ate"
HeaderText=" Changes" CancelText="Can cel"
EditText="Accep t">
<HeaderStyle Font-Size="Small" Font-Names="Arial
Narrow"></HeaderStyle><It emStyle Font-Size="X-Small" Font-Names="Arial
Narrow"></ItemStyle>
</asp:EditCommand Column>
"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**@discussio ns.microsoft.co m> wrote in message
news:59******** *************** ***********@mic rosoft.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
8019
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 following code: <html> <head> <title>Test ASP</title>
0
1193
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 use a more complex design pattern to open forms that is good at closing other forms first and assures that each form is a singleton. The simple code
0
1009
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 into the browser, and run from there, it works perfect - but I don't want to let people see the URL - so instead, I have the download call this function: Dim FileToDownload As String = "test.swf" Dim iStream As System.IO.Stream
7
1277
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 variable declaration What is the difference between the two (I strongly suspect there is none)
10
2853
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 know a solution for this? Thanks!
7
1170
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? Me.Validate() Me.AreaBindingSource.EndEdit() Me.AreaTableAdapter.Update(Me.Knysna2DataSet.Area)
7
11111
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 'System.Windows.Application' threw an exception."} {"The type initializer for 'System.Windows.Navigation.BaseUriHelper' threw an exception."} " at System.Windows.Application..ctor()\r\n at DiagramTool_v1.App..ctor()\r\n at DiagramTool_v1.App.Main() in
7
1819
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: switch (txtHours.Text) { case "": MessageBox.Show("No hours entered.\nYou must enter hours
0
9561
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10532
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10281
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10058
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9111
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6835
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5494
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3789
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2966
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.