♠ Posted by uvesh in make button default
How to make button as default button?
Your Button put in panel and give button id in DefaultButton property of panel. most of people think and find Button's property to make it default but actually here asp panel is require and set panel's property DefaultButtton="Here write button id which you want to make default" .
<asp:Panel ID="pnl1" runat="server" DefaultButton ="Button1">
<asp:Button ID="Button1" runat="server" text="Click Me!" />
<asp:Button ID="Button2" runat="server" text="PushMe" />
</asp:Panel>
Here ...