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 ?
Dimansu
0
Light Poster
Recommended Answers
Jump to PostHi renukavani
Just wrap you code in asp:panel like this...
.aspx
<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
Koekoeksklok
0
Newbie Poster
Renukavani
0
Junior Poster
reach_yousuf
2
Junior Poster
Eduardo_2
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.