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...
from code have pasted, cannot see panel
control id
'open'. please 1 of following.
- if need panel 'open' functionality, add
asp:panel
'open' - if have removed open panel once had, remove code (from code behind in case) related that.
best of luck
james
Comments
Post a Comment