我试图在点击按钮时禁用RequiredFieldValidator,但我似乎无法弄清楚如何。我也试过.Enabled属性没有运气。这就是我所拥有的,但它不起作用。任何帮助将不胜感激,谢谢你提前
protected void btnCreateAccount_Click(object sender, EventArgs e)
{
RequiredFieldValidator3.IsValid = false;
RequiredFieldValidator4.IsValid = false;
{
lblCreateAccount.Text = user.CreateAccount();
}
}