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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.