Ask a Question related to ASP.NET General, Design and Development.
-
Leif #1
WebControls Button
I have 2 HTML buttons and 1 WebControls Button on my page.
I have set the 'CausesValidation' attribute of my
WebControls button to False in the hope that when a user
hits Enter the button will not execute.
This does not seem to work. How do I ensure that the
WebControls button does not get 'clicked' when the user
hits enter?
Furthermore, (my lack of experience may show here) is
there a way to have a HTML button activated when the user
hits Enter?
Thanks,
Leif Guest
-
Refering to <asp:> webcontrols
Hey, Question, how can i create client-side javascript that refers to a asp.net webcontrol. For example set the focus of a textbox lik this. ... -
Serious issues with webcontrols...
Hi, First of all, sorry for cross-posting, but some groups look more active than others, and I sure need to find an answer to this. I recently... -
IE WebControls
Hi, Downloaded IEWebControls.exe application & run on local machine O/S: Win Advance Server 2000 Framework: 1.1 Notes: * During installation... -
IE Webcontrols - Tabstrip
So has anyone worked with the IE webcontrols much? I've found that they've come in very handy for Internet Explorer clients ... ON A WINDOWS... -
WebControls enumeration
Is there enumeration for the WebControls? Thanks. -
Rhys Gravell #2
Re: WebControls Button
Look at the HTML view.
I believe it's usual for the ENTER button to fire off the first
physically listed button in the HTML.
Web Control buttons are rendered as INPUT buttons. So you should just
have to change they order in which the buttons are coded for in the
HTML. I.E., With the below in a .Net page, when the app is run hitting
return will fire off the INPUT button with an ID of 1...
<CODE>
<INPUT id="1" >
<asp:button id="2" </asp:button>
<INPUT id="3" >
</CODE>
...whilst the below would fire off the INPUT button with an ID of 3...
<CODE>
<INPUT id="3" >
<INPUT id="1" >
<asp:button id="2" </asp:button>
</CODE>
Following me... good.
So, change your HTML so the button you want to fire when the ENTER
button is hit is listed first...
OK?
Rhys Gravell
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Rhys Gravell Guest



Reply With Quote

