473,320 Members | 2,088 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,320 software developers and data experts.

Go to first Text box on content part of the page.

Is there a way to tell it to go to the first textbox on the page?

I would like the user to start off at the textbox on my page instead of
having to tab down through my meu to get to it or to have to use the mouse
to get there.

Same with the DataGrid. It would be nice to be able to go directly to the
first textbox in the row I am editing when I go into edit mode.

Thanks,

Tom
Nov 18 '05 #1
3 988
Check out this code snippet,
http://www.extremeexperts.com/Net/Co...rPostback.aspx

--
Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com
"tshad" <ts**********@ftsolutions.com> wrote in message
news:uI**************@TK2MSFTNGP14.phx.gbl...
Is there a way to tell it to go to the first textbox on the page?

I would like the user to start off at the textbox on my page instead of
having to tab down through my meu to get to it or to have to use the mouse
to get there.

Same with the DataGrid. It would be nice to be able to go directly to the
first textbox in the row I am editing when I go into edit mode.

Thanks,

Tom

Nov 18 '05 #2
"Saravana" <sa******@sct.co.in> wrote in message
news:SW****************@news.cpqcorp.net...
Check out this code snippet,
http://www.extremeexperts.com/Net/Co...rPostback.aspx
That would work fine, except that the textbox I have

name="DataList1:_ctl2:DataGrid1:_ctl2:_ctl0"

This is part of the EditCommandColumn:

<asp:EditCommandColumn EditText="<img
src='..\images\Edit.png'border='0' id='textbox1'>" visible="true"
ButtonType="LinkButton"
UpdateText="<img src='..\images\update.png'
border='0'>" CancelText="<img src='..\images\Cancel.png' border='0'>" />

As you can see I tried to fix the problem by name it by id:
id='textbox1'

That doesn't show up, however when rendered.

Thanks,

Tom
--
Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com
"tshad" <ts**********@ftsolutions.com> wrote in message
news:uI**************@TK2MSFTNGP14.phx.gbl...
Is there a way to tell it to go to the first textbox on the page?

I would like the user to start off at the textbox on my page instead of
having to tab down through my meu to get to it or to have to use the
mouse
to get there.

Same with the DataGrid. It would be nice to be able to go directly to
the
first textbox in the row I am editing when I go into edit mode.

Thanks,

Tom


Nov 18 '05 #3
hi

instead of document.getElementById(""Textbox1"").focus();
try
document.getElementById(""" +Textbox1.ClientId+""").focus();

from your code looks like you set the id of an image tag not the control
"tshad" <ts**********@ftsolutions.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
"Saravana" <sa******@sct.co.in> wrote in message
news:SW****************@news.cpqcorp.net...
Check out this code snippet,
http://www.extremeexperts.com/Net/Co...rPostback.aspx
That would work fine, except that the textbox I have

name="DataList1:_ctl2:DataGrid1:_ctl2:_ctl0"

This is part of the EditCommandColumn:

<asp:EditCommandColumn EditText="<img
src='..\images\Edit.png'border='0' id='textbox1'>" visible="true"
ButtonType="LinkButton"
UpdateText="<img src='..\images\update.png'
border='0'>" CancelText="<img src='..\images\Cancel.png' border='0'>" />

As you can see I tried to fix the problem by name it by id:
id='textbox1'

That doesn't show up, however when rendered.

Thanks,

Tom

--
Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com
"tshad" <ts**********@ftsolutions.com> wrote in message
news:uI**************@TK2MSFTNGP14.phx.gbl...
Is there a way to tell it to go to the first textbox on the page?

I would like the user to start off at the textbox on my page instead of
having to tab down through my meu to get to it or to have to use the
mouse
to get there.

Same with the DataGrid. It would be nice to be able to go directly to
the
first textbox in the row I am editing when I go into edit mode.

Thanks,

Tom



Nov 18 '05 #4

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

Similar topics

2
by: Bill | last post by:
I'm trying to create a form that allows me to modify the contents of list. When the user clicks on the modify button, it takes them to a page which displays the quantity of items they purchase, and...
2
by: sincethe2004 | last post by:
Hi, I'm write an asp to include part of a text file into my asp output html, I use FileSystemObject to get the content of the text file, but the asp just hang when it runs, the source code is...
1
by: John Dann | last post by:
I have an odd problem with a 2-column page set in a 2-column table. The right-hand column is meant to act like a sidebar and is relatively narrow at 160px. The problem is that the display of...
11
by: Robert Bowen | last post by:
Hello all. I have been given mock-ups (in static HTML) of some pages for a site I am working on. The client would like these pages to look exactly as they do now. The problem is that the content is...
2
by: robbiehenry | last post by:
I built my company's website and the content portion of the site uses text with styles with relative values and the navigational part of the site uses text with styles with absolute values. The...
14
by: Joe | last post by:
Hello All: I am trying to dynamically populate a web page with literal content and controls (textboxes and checkboxes (and eventually two buttons - the buttons do not appear in the code yet). I...
5
by: deko | last post by:
I'm trying to insert dynamically-generated copy in a page that contains a right-float and a left-float block at the top of the page. http://www.clearpointsystems.com I need everything in the...
3
by: Mesut | last post by:
I have written a form in with radio buttons the name is set to orderby and the value is set to KundeVorName and the next value is KundeNachName and it goes so on. I wanna modify my query according...
11
by: tokcy | last post by:
Hi everyone, I am new in php and ajax, i am facing the prob while i click on element of first drop down then in second dropdown all element showl come from database. I mean i have three dropdown 1....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.