Hi
I am new to the dot net field i need to do my login page in which i need to give specific home pages for admin and other users i dont know how to do it kindly help me with some code for authentication for different users
Hi
I am new to the dot net field i need to do my login page in which i need to give specific home pages for admin and other users i dont know how to do it kindly help me with some code for authentication for different users
Hi Mythi and welcome!
I have found some links that may assist you:
http://www.ondotnet.com/pub/a/dotnet/2003/01/06/formsauthp1.html
http://weblogs.asp.net/scottgu/archive/2005/10/18/427754.aspx
These links detail 2 approaches to creating your login page. Arguably the second link's tutorial is simpler and provides a quicker solution. Hope this helps and good luck!
i am also new for it feild i tried to answer .for administrator u know the user name and password. so u can use like this
if(username=="adminusername" && password=="adminpassword")
{
response.redirect("adminhomepage.aspx");
}
else
{
response.redirect("userhomepage.aspx");
}
hi vmadhu_ece
Thank u for ur coding i finished doing my login page thank u for ur timely help
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.