Ask a Question related to ASP.NET General, Design and Development.
-
Sean #1
Setting the default button
hi,
i have a webform, which has a couple of formfields including a couple of buttons too.
the webform structure is
textbox1
button1
button2
textbox2
button3 - submit
How do i trap when the focus on textbox2 , so i could set the enable property of button1 and button2 to be false, so the Submit would work, when the Enter Key is pressed.
Any suggestion is welcomed and appreciated.
--
Thank You,
Sean
Sean Guest
-
Setting default button in alertbox
I'm using AVAlertWithParams to show a messagebox to the user. Is it possible to set the default button in the messagebox? -
Need help setting a default variable
I have a query that results in one field for one unique record (Time_ID)...it is an integer. What I need to do is grab that one value at the... -
Setting index.cfm as the default document??? Yes, it hasbeen added as a default document in IIS.
I am having trouble getting IIS to recognize the default index.cfm document, and I was wondering if anyone could give me some guidance. I created a... -
Faulty Default Setting
Jerry, I disagree with your arguments strongly. Firstly, not all digital cameras 'deliver' 72 ppi images. Photoshop reads the EXIF data, and... -
Setting Default Font
Stick to a known system font like arial or whatever or just use a shockwave font (can go a bit wonkey depending on the font) and change all your... -
Steve C. Orr, MCSD #2
Re: Setting the default button
You can intercept the client side enter keypress event of the text box and then click the correct button using javascript code.
Here's a good example:
[url]http://www.kamp-hansen.dk/pages/showdoc.asp?id=28&menuid=21&menuid=18[/url]
You could also try using this free control.
[url]http://www.metabuilders.com/tools/DefaultButtons.aspx[/url]
And here's a good article on the subject:
[url]http://www.allasp.net/enterkey.aspx[/url]
--
I hope this helps,
Steve C. Orr, MCSD
[url]http://Steve.Orr.net[/url]
"Sean" <nospam@> wrote in message news:uo4Bk35VDHA.452@TK2MSFTNGP10.phx.gbl...
hi,
i have a webform, which has a couple of formfields including a couple of buttons too.
the webform structure is
textbox1
button1
button2
textbox2
button3 - submit
How do i trap when the focus on textbox2 , so i could set the enable property of button1 and button2 to be false, so the Submit would work, when the Enter Key is pressed.
Any suggestion is welcomed and appreciated.
--
Thank You,
Sean
Steve C. Orr, MCSD Guest
-
Sean #3
Re: Setting the default button
Thank You Steve for those valuable links.
"Steve C. Orr, MCSD" <Steve@Orr.net> wrote in message news:#Kudz$5VDHA.2544@tk2msftngp13.phx.gbl...
You can intercept the client side enter keypress event of the text box and then click the correct button using javascript code.
Here's a good example:
[url]http://www.kamp-hansen.dk/pages/showdoc.asp?id=28&menuid=21&menuid=18[/url]
You could also try using this free control.
[url]http://www.metabuilders.com/tools/DefaultButtons.aspx[/url]
And here's a good article on the subject:
[url]http://www.allasp.net/enterkey.aspx[/url]
--
I hope this helps,
Steve C. Orr, MCSD
[url]http://Steve.Orr.net[/url]
"Sean" <nospam@> wrote in message news:uo4Bk35VDHA.452@TK2MSFTNGP10.phx.gbl...
hi,
i have a webform, which has a couple of formfields including a couple of buttons too.
the webform structure is
textbox1
button1
button2
textbox2
button3 - submit
How do i trap when the focus on textbox2 , so i could set the enable property of button1 and button2 to be false, so the Submit would work, when the Enter Key is pressed.
Any suggestion is welcomed and appreciated.
--
Thank You,
Sean
Sean Guest



Reply With Quote

