I have a Login user control in a Login form. I want to set the default Enter press to a button called LoginButton in my user control.How can I do it in C# using Visual studio ?
Jump to Post
Just wrap you code in asp:panel like this...
<asp:Panel ID="Panel1" runat="server" DefaultButton="Button1"> <asp:Label ID="Label1" runat="server" Text=""></asp:Label> </asp:Panel> <asp:Button ID="Button1" runat="server" Text="Button" /> <asp:Button ID="Button2" runat="server" Text="Button" />
Mark as solved if it helps you
All 4 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.