Saturday, March 24, 2012

mixing HTML controls with code behind controls

I had a similar problem as Ferdi - 19 Aug 2003 - "Postback after carriage
return input" where pressing the enter key would postback my asp textboxes
prematurely - I want the user to click on a button after filling in the
text boxes and pressing enter messes up my plans. Using Giscard's advice
(onkeydown="return event.keyCode!=13")with HTML Input text boxes solved the
postback problem. But now I'm stuck trying to get the text from the HTML
text boxes back into my asp C# code.
Thanks,
NormRequest["myhtmlcontrolname"].ToString()
2004 and 2005 Microsoft MVP C#
Robbe Morris
http://www.robbemorris.com
http://www.masterado.net
"Norm via webservertalk.com" <forum@.nospam.webservertalk.com> wrote in
message news:43e5b867799d4646b11eccdeebb9edb9@.Do
webservertalk.com...
>I had a similar problem as Ferdi - 19 Aug 2003 - "Postback after carriage
> return input" where pressing the enter key would postback my asp textboxes
> prematurely - I want the user to click on a button after filling in the
> text boxes and pressing enter messes up my plans. Using Giscard's advice
> (onkeydown="return event.keyCode!=13")with HTML Input text boxes solved
> the
> postback problem. But now I'm stuck trying to get the text from the HTML
> text boxes back into my asp C# code.
> Thanks,
> Norm
Robbe,
This is exactly what I needed! Thanks!
Norm
Message posted via http://www.webservertalk.com

0 comments:

Post a Comment