July 2005 - Posts

Wire up the default button

One line of code to wire up the default button on Enter key in ASP.net forms courtesy of Jeff Putz's blog.

 EmailTextBox.Attributes.Add("onKeyPress", "BLOCKED SCRIPTif (event.keyCode == 13) __doPostBack('" + LoginButton.UniqueID + "','')");

posted by AlanL with 0 Comments