Ask a Question related to ASP.NET General, Design and Development.
-
Patrick Steele [MVP] #1
Re: Set button as default on web form
In article <002b01c34a30$c63dcb50$a601280a@phx.gbl>,
[email]Michael.Rainey@pnl.gov[/email] says...Use "Page.RegisterHiddenField". See this newsgroup post:> I need to set one button (out of many) as the default
> button on the web form when I hit return in a textbox
> control. This seems like a simple question that should
> have a simple answer.
[url]http://tinyurl.com/gwr5[/url]
--
Patrick Steele
Microsoft .NET MVP
[url]http://weblogs.asp.net/psteele[/url]
Patrick Steele [MVP] Guest
-
How do I set the default button on a web page
On an aspx page, I notice when the page opens there is no default command button (press enter & nothing happens). However, once I set the focus on... -
default html button
Hi everyone, On a html page I have some input boxes and few buttons. On that page if user hits ENTER key at any time, it will have a specific to... -
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... -
JavaScript Access to Button in form tags (webcontrol or html button)
Hello, I have a button called LoadBtn, which exists in <form name="Form1" runat=server></form> tags. I then have javascript loaded outside of... -
Default button
How to set the default button(return key) in a WebForm? ..Javier Ros Moreno. -
Steve C. Orr, MCSD #2
Re: Set button as default on web form
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]
--
I hope this helps,
Steve C. Orr, MCSD
[url]http://Steve.Orr.net[/url]
"Mike" <Michael.Rainey@pnl.gov> wrote in message
news:002b01c34a30$c63dcb50$a601280a@phx.gbl...> I need to set one button (out of many) as the default
> button on the web form when I hit return in a textbox
> control. This seems like a simple question that should
> have a simple answer.
>
> Thank you,
>
> Mike
Steve C. Orr, MCSD Guest



Reply With Quote

