Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

loginname control

$
0
0
Hi
When i use code for users login
The loginname control that in masterpage not show username.
How i do?
if(Membership.ValidateUser(username,password))
{
// The credentials are correct, log the user in (create an authentication cookie)
FormsAuthentication.SetAuthCookie(username, false);

respons.Redirect("page.aspx")
}
else
{
// The credentials entered were invalid, display an error
}

Viewing all articles
Browse latest Browse all 4737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>