|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Which event?I have a working form/datagrid/search page working...was trying allow the
user to enter search criteria in a textbox, hit enter, and fire off the same event my command button runs. How might I do that? There doesn't seem to be an obvious event tied to the textbox or form that this would go. Thanks, Steve If you mean that hitting Enter would cause anything to happen even if you
have a Button on the form also, that's a known problem. You can work around it with this control, for example http://www.metabuilders.com/Tools/DefaultButtons.aspx If you want to get to the "event", you'd need to wire event for say onkeypress client-side event, check if the keyCode is 13 (enter, how you get to this in various browsers might indeed vary) and then cause client-side action (postback) that again causes something to happen at server. -- Show quoteHide quoteTeemu Keiski ASP.NET MVP, AspInsider Finland, EU "Steve Schroeder" <sschroe***@merchant-gould.com> wrote in message news:OjoSs3eOFHA.3296@TK2MSFTNGP15.phx.gbl... >I have a working form/datagrid/search page working...was trying allow the > user to enter search criteria in a textbox, hit enter, and fire off the > same > event my command button runs. > > How might I do that? There doesn't seem to be an obvious event tied to the > textbox or form that this would go. > > Thanks, > > Steve > > > Thanks, appreciate the pointer.
Did someone at MS have a brain fart over this one...hello...anyone home at Redmond...lol, amazing. Show quoteHide quote "Teemu Keiski" <jot***@aspalliance.com> wrote in message news:%23INFcQfOFHA.3072@TK2MSFTNGP09.phx.gbl... > If you mean that hitting Enter would cause anything to happen even if you > have a Button on the form also, that's a known problem. You can work around > it with this control, for example > > http://www.metabuilders.com/Tools/DefaultButtons.aspx > > If you want to get to the "event", you'd need to wire event for say > onkeypress client-side event, check if the keyCode is 13 (enter, how you get > to this in various browsers might indeed vary) and then cause client-side > action (postback) that again causes something to happen at server. > > -- > Teemu Keiski > ASP.NET MVP, AspInsider > Finland, EU > > > "Steve Schroeder" <sschroe***@merchant-gould.com> wrote in message > news:OjoSs3eOFHA.3296@TK2MSFTNGP15.phx.gbl... > >I have a working form/datagrid/search page working...was trying allow the > > user to enter search criteria in a textbox, hit enter, and fire off the > > same > > event my command button runs. > > > > How might I do that? There doesn't seem to be an obvious event tied to the > > textbox or form that this would go. > > > > Thanks, > > > > Steve > > > > > > > > I can add the Metabuilder's DefaultButtons as a reference to my project, but
I when I go to add it to my toolbox...I get...dll cannot be loaded, check that dependencies are installed... I had this same problem with another third party control, .DotNetCharting. So much for the end of DLL hell...lol. Billy, Billy, Billy...what were you thinking? Show quoteHide quote "Teemu Keiski" <jot***@aspalliance.com> wrote in message news:%23INFcQfOFHA.3072@TK2MSFTNGP09.phx.gbl... > If you mean that hitting Enter would cause anything to happen even if you > have a Button on the form also, that's a known problem. You can work around > it with this control, for example > > http://www.metabuilders.com/Tools/DefaultButtons.aspx > > If you want to get to the "event", you'd need to wire event for say > onkeypress client-side event, check if the keyCode is 13 (enter, how you get > to this in various browsers might indeed vary) and then cause client-side > action (postback) that again causes something to happen at server. > > -- > Teemu Keiski > ASP.NET MVP, AspInsider > Finland, EU > > > "Steve Schroeder" <sschroe***@merchant-gould.com> wrote in message > news:OjoSs3eOFHA.3296@TK2MSFTNGP15.phx.gbl... > >I have a working form/datagrid/search page working...was trying allow the > > user to enter search criteria in a textbox, hit enter, and fire off the > > same > > event my command button runs. > > > > How might I do that? There doesn't seem to be an obvious event tied to the > > textbox or form that this would go. > > > > Thanks, > > > > Steve > > > > > > > >
Validation Summary Control not displaying MessageBox on web server
click on TreeNode User Control, vanishes Capturing event from other custom control within another custom control Free TreeView Controls ? Treeview control in VS2003 stuck: I cant reach usercontrol's class .. PersistenceMode Re: Dynamic Sizing Based Upon the Parent Element's Width About the <Asp:Image> |
|||||||||||||||||||||||