asp.net - Why isn't my code-behind working properly? -


here's code-behind file web form. can't arguments work form.

    protected void btn_submit_click(object sender, eventargs e)     {//enter arguments here...     }     protected void btn_clear_click(object sender, eventargs e)     {         response.redirect("~/contentrequest/bmc_pr_event.aspx", true);     }     protected void showform()     {         open.visible = true;         success.visible = false;         failure.visible = false;     }     protected void showsuccess()     {         open.visible = false;         success.visible = true;         failure.visible = false;     }     protected void showfailure()     {         open.visible = false;         success.visible = false;         failure.visible = true;     }  } 

here's code i'm trying work with...

        <asp:button tabindex="12" text="submit request" id="button1" cssclass="submit" onclientclick="return validateform();" runat="server" onclick="btn_submit_click"></asp:button>         <asp:button tabindex="13" text="clear fields" id="button2" cssclass="clear" usesubmitbehavior="false" runat="server" onclick="btn_clear_click"></asp:button>         <asp:label id="label1" runat="server"></asp:label>     </div> </asp:panel>     <asp:panel id="success" visible="false" runat="server">         <div class="message"><p>your submission sucessful.</p><p>an email receipt has been sent address provided details of request.</p><p>thank you.</p></div>     </asp:panel>     <asp:panel id="failure" visible="false" runat="server">         <div class="message">             <p>there error request.  if persists, please report trouble _ohe web strategies.</p> 

not sure else can here...

--edit-- this error get...

enter image description here

from code have pasted, cannot see panel control id 'open'. please 1 of following.

  1. if need panel 'open' functionality, add asp:panel 'open'
  2. if have removed open panel once had, remove code (from code behind in case) related that.

best of luck

james


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -