|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
make a button deaultAnyone has an idea of how to make a button default in a webform? I want to
be able to press enter to use a button when page loads, whithout having to use a mouse everytime. Couldn't find anything in msdn. Thanks in advance. Try this?
DefaultButtons Control http://www.metabuilders.com/Tools/DefaultButtons.aspx Show quoteHide quote "Ilyan Mishiyev" <msnewsaccountREM***@THISigmcc.com> wrote in message news:OnxAlF8PFHA.2604@TK2MSFTNGP10.phx.gbl... > Anyone has an idea of how to make a button default in a webform? I want to > be able to press enter to use a button when page loads, whithout having to > use a mouse everytime. Couldn't find anything in msdn. Thanks in advance. > In many cases a single line of code will do the trick:
Page.RegisterHiddenField("__EVENTTARGET", MyButton.ClientID) Here's more details on the subject: http://www.allasp.net/enterkey.aspx Show quoteHide quote "Ilyan Mishiyev" <msnewsaccountREM***@THISigmcc.com> wrote in message news:OnxAlF8PFHA.2604@TK2MSFTNGP10.phx.gbl... > Anyone has an idea of how to make a button default in a webform? I want to > be able to press enter to use a button when page loads, whithout having to > use a mouse everytime. Couldn't find anything in msdn. Thanks in advance. > thank you, I will try those examples
Show quoteHide quote "Ilyan Mishiyev" <msnewsaccountREM***@THISigmcc.com> wrote in message news:OnxAlF8PFHA.2604@TK2MSFTNGP10.phx.gbl... > Anyone has an idea of how to make a button default in a webform? I want to > be able to press enter to use a button when page loads, whithout having to > use a mouse everytime. Couldn't find anything in msdn. Thanks in advance. >
IE Web Controls - discontinued ???
custom validator and button events custom validator and button events Re: At which life cycle should EnsureChildControls() be called? Cant Render Page Control with Visual Studio 2005 Beta Control Template How do I post hidden variables to another form from a popup? Sorting problem in Data grid control Public Method Logic Question? dataset values in a dropdownlist |
|||||||||||||||||||||||