我试图禁用一个 asp.net 按钮但失败了。错误:
Compiler Error Message: CS1501: No overload for method 'btnUnlock_Click' takes '0' arguments
源错误:
Line 99: <asp:Button ID="btnUnlock" runat="server" Text="Unlock User" Visible="False" OnClick ="btnUnlock_Click()" />
和
protected void btnUnlock_Click(object sender, EventArgs e)
{
MembershipUser user = Membership.GetUser(userName);
user.UnlockUser();
}
谢谢。