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没有声明?
微软的例子也是这样啊?
应该怎么声明?