FormsAuthentication not declared!
Hi-
I am trying to use FormsAuthentication, but getting the error:-
"Name FormsAuthentication not declared".
Do I need to include anything in my code behind file. The code behind file has following statement:-
If ValidateUser(Me.txtLoginName.Text, Me.txtPassword.Text) = True Then
FormsAuthentication.RedirectFromLoginPage(Me.txtLo ginName.Text, False)
Else
Me.lblHelp.InnerText = "Login Failed. Please Try Again !"
End If
In my web.config file, I have the following code:-
<authentication mode="Forms">
<forms name=".ASPXAUTH"
loginUrl="login.aspx"
protection="All"
timeout="480"
path="/"
/>
</authentication>
<authorization>
<deny users ="?" />
</authorization>
|