FORM验证时出错:
BUTTON事件代码:
If ((UserEmail.Value = "[email protected]") And _
(UserPass.Value = "password")) Then
FormsAuthentication.RedirectFromLoginPage _
(UserEmail.Value, Persist.Checked)
Else
Msg.Text = "Invalid Credentials: Please try again."
End If
我在页面已经导入system.web.security了。
系统提示错误在:FormsAuthentication没有声明?
微软的例子也是这样啊?
应该怎么声明?
BUTTON事件代码:
If ((UserEmail.Value = "[email protected]") And _
(UserPass.Value = "password")) Then
FormsAuthentication.RedirectFromLoginPage _
(UserEmail.Value, Persist.Checked)
Else
Msg.Text = "Invalid Credentials: Please try again."
End If
我在页面已经导入system.web.security了。
系统提示错误在:FormsAuthentication没有声明?
微软的例子也是这样啊?
应该怎么声明?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货