Home > Net >  "The Button1_Click" is not a member of the "ASP. Default_aspx". How to solve?
"The Button1_Click" is not a member of the "ASP. Default_aspx". How to solve?

Time:10-08


No title page & lt;/title> <br/></head> <br/><body> <br/><The form id="form1" runat="server" & gt; <br/><Div> <br/><Strong> <Span style="font - size: 24 pt" & gt; <Span style="color: # ff0000" & gt; Change the password & lt;/span> <Br/& gt; <br/></span> </strong> <br/><Table> <br/><tr> <br/><Td style="width: 100 px" & gt; <br/>Old code: & lt;/td> <br/><Td style="width: 273 px" & gt; <br/><Asp: TextBox ID="TextBox1" runat="server" & gt; </asp: TextBox> <br/><Asp: RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="Password", "<br/>The Display="Dynamic" ErrorMessage="please provide a password" & gt; * & lt;/asp: RequiredFieldValidator> <br/><Asp: RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="Password", "<br/>The Display="Dynamic" ErrorMessage="length of password must be between eight and 20 characters!" ValidationExpression=". 8, 20} {" & gt; </asp: RegularExpressionValidator> </td> <br/></tr> <br/><tr> <br/><Td style="width: 100 px" & gt; <br/>The new secret code: & lt;/td> <br/><Td style="width: 273 px" & gt; <br/><Asp: TextBox ID="Password" runat="server" & gt; </asp: TextBox> <br/><Asp: RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="Password", "<br/>The Display="Dynamic" ErrorMessage="please provide a password" & gt; * & lt;/asp: RequiredFieldValidator> <br/><Asp: RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="Password", "<br/>The Display="Dynamic" ErrorMessage="length of password must be between eight and 20 characters!" ValidationExpression=". 8, 20} {" & gt; </asp: RegularExpressionValidator> </td> <br/></tr> <br/><tr> <br/><Td style="width: 100 px" & gt; <br/>Enter a new password again: & lt;/td> <br/><Td style="width: 273 px" & gt; <br/><Asp: TextBox ID="TextBox2" runat="server" & gt; </asp: TextBox> <br/><Asp: RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="Password", "<br/>The Display="Dynamic" ErrorMessage="please provide a password" & gt; * & lt;/asp: RequiredFieldValidator> <br/><Asp: RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="Password", "<br/>The Display="Dynamic" ErrorMessage="length of password must be between eight and 20 characters!" ValidationExpression=". 8, 20} {" & gt; </asp: RegularExpressionValidator> </td> <br/></tr> <br/></table> <br/><Asp: ValidationSummary ID="ValidationSummary1" runat="server" the HeaderText="you must provide the following information:"/& gt; <br/><Asp: Button ID="for the" runat="server" Text="sure" OnClick="Button1_Click"/& gt; <Br/& gt; <br/><Asp: Label ID="Message" runat="server" & gt; </asp: Label> </div> <br/></form> <br/></body> <br/></html> <br/><p class="article - content rp"> CodePudding user response: </p>To the design. The cs events and see if it is not registered in the <br/><p class="article - content rp"> CodePudding user response: </p>File on the top of the first line of asp.net page label?<p class="article - content rp"> CodePudding user response: </p>The Button1_Click method code no<p class="article - content rp"> CodePudding user response: </p>Look at the code behind mark, inherit in to see if the specified is wrong,<p class="article - content rp"> CodePudding user response: </p><@ page> This tag? </div> <div class="th_page th_page_color"></div> <div class="umCopyright"> <p>Page link:<a href="/net/57055.html" target="_blank" style="color:#999">https//www.codepudding.com/net/57055.html</a></p> </div> <div class="detail-arr"> <div class="detail-arr-left">Prev:<a href='/net/57054.html'>The socket after new open the window, the original text fields to display new message window</a></div> <div class="detail-arr-right">Next:<a href='/net/57056.html'>How to make the socket communication between webform and winform?</a></div> </div> </div> </div> </div> </div> <div class="container th_top"> <div class="row"> <div class="col-md-12"> <div class="hot-tags neitags"> <ul> <li><i class="iconfont icon-x-tags"></i> Tags:  </li> <a href='/e/tags/?tagname=Web+Services' target='_blank'>Web Services</a> </ul> </div> </div> </div> </div> <div class="container th_top"> <div class="row"> <div class="col-md-12"> <div class="xiangguan"> <ul class="msg msghead"> <li class="tbname">Related</li> </ul> <ul> </ul> </div> </div> </div> </div> <div class="container th_top"> <div class="row"> <div class="col-md-12"> <div class="flinks"> <ul> <li><i class="iconfont icon-x-tags"></i> Links:  </li> <li class="liflinks"><a target="_blank" href="/" title="CodePudding">CodePudding</a></li> </ul> </div> </div> </div> </div> <div class="footer"> <p><span style="font-size:16px;color:#666;font-weight: bold">About Us:</span>  <a href="https://www.codepudding.com/contact.html">Contact Us</a>      <a href="https://www.codepudding.com/service.html">Terms of Service</a>      <a href="https://www.codepudding.com/privacy.html"> Privacy Policy</a></p> <p class="foot_info">Copyright © 2010-2023,Powered By <a href="/" target="_blank">CodePudding</a> </p> </div> <script type="text/javascript" src="/skin/code/tianhu.js"></script> </body></html>