我在Approve.aspx中有两个(2)按钮,它是bttnVerify和bttnApprove。问题是,在页面加载过程中,bttnApprove.visible = false,当用户单击bttnVerify时,它将重定向到另一个页面。重定向下面的页面代码。如何在重定向到另一个asp.net页面时禁用按钮?
Captcha1.ValidateCaptcha(txtCaptcha.Text.Trim())
If Captcha1.UserValidated Then
lblMessage.ForeColor = System.Drawing.Color.Green
Response.Redirect("~/Accounts/AccountsApproval/" & Session("IDs"))
Else
lblMessage.ForeColor = System.Drawing.Color.Red
lblMessage.Text = "InValid"
End If
从上面的代码中,当它的验证码进行验证,我想在这页是bttnApprove和bttnVerify.visible = true来禁用特定的按钮。
在此先感谢。
这个按钮是从 – Carisle 2014-09-02 10:45:58
其他页面您使用的母版页 – 2014-09-02 10:46:58
是的,但这个按钮是在内容页... – Carisle 2014-09-02 10:47:56