i need login code in my project. in my project two different category of user one is administrator and other is data operator. both have to redirect different page after login. my problem is that how to login the both user on different page .

On your situation you can have an option that a user can choose from, e.g using a radioButton list specifying login as user or administrator, each radiobutton must redirect to the intended page

i have tired this but i couldnot do this. its creat a lot of error and i am not good in programming . can u give me the code of this lofin criteria which we discuss above

You will have 2 raiobutton then code :
if (radiobuttonList.selectedIndex == 0)
{
response.redirect("administrator.aspx?");
}
if(radioButtonList.SelectedIndex == 1)
{
response.redirect("User.aspx?");
}

Hope it will work, forgive me about naming componentss

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.