Daily Tips- Tip #7 - How will you make a button the default button?

Tuesday, July 14, 2009


You can do that by setting the DefaultButton attribute of the form in which the button is present.


Ex:
<form id=f1 defaultbutton="btnSubmit" runat="server">
<asp:textbox id="textbox1" runat="server"/>
<asp:button id="button1" text="btnSubmit" runat="server"/>
</form>



www.codecollege.NET

0 comments

Post a Comment

LinkWithin

Blog Widget by LinkWithin

Recommended Books