BC30456:“ Enableusers_Click”不是“ administration_changepassword_aspx”的成员

时间:2019-12-27 11:58:13

标签: asp.net vb.net

我有一个按钮,一旦单击该按钮应触发后面的代码。该页面未加载,但出现错误:BC30456。事件Enableusers是形式为/administration/changepassword.aspx

的事件

下面的代码          

  <div class="w3-center"><br/>
    <span onclick="document.getElementById('modal_EnableUser').style.display='none'" class="w3-button w3-xlarge w3-hover-red w3-display-topright" title="Close Modal">&times;</span>
    <div class="w3-content w3-green w3-center" style="width:100%;"><h2 style="text-align:center;">Enable User</h2></div>

  </div>

  <div class="w3-container">
    <div class="w3-section w3-row-padding">

      <div class="w3-half">
                        <label style="margin-left:0px">UserName:</label>
                        <asp:TextBox runat="server" ID="Username_enable" ValidationGroup="Enableusers" CssClass="w3-input w3-border w3-animate-input" TextMode="singleline" />
                        <asp:RequiredFieldValidator runat="server" ControlToValidate="Username"
                            CssClass="text-danger" ErrorMessage="The UserName field is required." ValidationGroup="Enableusers" />
              </div>

       <asp:Label ID="UnlockUserMessage" runat="server" CssClass="w3-block" ForeColor="Red" Visible="False" Width="400"></asp:Label>
      </div>
  </div>
   <asp:Button  runat="server" ID="Enableusers" Text="Enable User" OnClick="Enableusers_Click" ValidationGroup="Enableusers"  CssClass="w3-button w3-block w3-section w3-padding w3-purple w3-hover-blue" />
  <div class="w3-container w3-border-top w3-padding-16 w3-light-grey">
  <button runat="server"  onclick="document.getElementById('modal_EnableUser').style.display='none'" type="button" class="w3-button w3-red w3-card-2">Cancel</button>
    </div>

</div>

0 个答案:

没有答案