c# - AcceptButton directive? -
code:
form1.acceptbutton = accessbutton; and put:
using system.windows.forms; but doesnt find it. says system.web.ui.htmlcontrol.htmlform doesnt have definition. uhm?
put controls in panel , set defaultbutton :
<asp:panel defaultbutton="accessbutton" runat="server"> <asp:textbox id="myname" runat="server" /> <asp:button id="accessbutton" text="submit" runat="server" /> </asp:panel> c# .net forms
No comments:
Post a Comment