asp.net - Conflict on submit button when Hit login submit button -


i have 2 submit button in various 2 purpose. when hit enter button,but top submit button working. how can rectify problem. please guide me. hope point. form below url http://i.stack.imgur.com/zlnxi.jpg

try use asp panel control group login controls , signup controls. , set defaultbutton property desired button. here sample code, how use panel

<asp:panel id="panel1" runat="server" defaultbutton="buttonok">     <table >         <tr>             <td>                 <asp:label id="label1" runat="server" text="label"></asp:label>             </td>             <td>                 <asp:textbox id="textbox1" runat="server"></asp:textbox>             </td>         </tr>          <tr>             <td>                 <asp:label id="label2" runat="server" text="label"></asp:label>             </td>             <td>                 <asp:textbox id="textbox2" runat="server"></asp:textbox>             </td>         </tr>          <tr>             <td>                 <asp:button id="buttonok" runat="server" text="ok" />             </td>             <td>                 <asp:button id="buttoncancel" runat="server" text="cancel" />             </td>         </tr>     </table> </asp:panel> 

i hope helps.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -