StatCounter

View My Stats

Tuesday, February 10, 2009

Region based default button in ASP.NET

Region based default button in ASP.NET

Another one Simple Method is use the Panel inside it put the Default Button Focus To It
<!--


--!>

You can also kept the focus coding at the Form tag itself




If we want to provide the enter key focus based on the particular region we can use panel (or) form tag with "defaultbutton" properties.

Inside the panel you may kept anything else...table,div tag anything whatever u want to


Consider your cursor points to that's location on that if any enter key get fired then the default event focus to the control. For the above example the Button3 click event get fires on the enter key click event.

No comments: