asp.net panel defaultbutton dosn't work -
i got panels textfields & buttons. problem is, though have panel defaultbutton, still uses first button on page when ever i'm clicking enter. iv'e done lot of times, stopped working?
<asp:panel id="pnlwrite" defaultbutton="btnwallsubmit" runat="server"> <div class="input-group"> <span class="input-group-addon" id="basic-addon1"><asp:literal id="litname" runat="server" /></span> <asp:textbox id="txtmind" runat="server" cssclass="form-control" aria-label="..." placeholder="what's on mind?" /> <div class="input-group-btn"> <asp:button id="btnwallsubmit" runat="server" cssclass="btn btn-default" text="publish!" onclick="btnwallsubmit_click" /> </div> </div> <br /> </asp:panel>
but still use login button(which on masterpage) when i'm clicking enter.
best regards,
//edit
iv'e tried these browsers: google chrome, firefox, opera, edge & internet explorer. seems works on edge & explorer. solutions?
is login button on masterpage inside panel defaultbutton set? if so, can override masterpage default button on content page adding following inside page_load
of content page this...
protected void page_load(object sender, eventargs e) { form.defaultbutton = this.btnwallsubmit.uniqueid; }
Comments
Post a Comment