Hello Experts,
I am developing a website in which i am using forms authentication. We have 2 log in pages.one for user another for admin.
I added this code into webconfig file for user.
<forms loginUrl="Login.aspx" defaultUrl="Home.aspx" >
I am using this code for user side when user successfully logged in.
FormsAuthentication.RedirectFromLoginPage (UserName.Text, chkPersistCookie.Checked)
I am not using the default user membership database.i have my own data base in sql server 2005
I want same thing for admin,but the default url is Admin.aspx & login url is adminlogin.aspx for admin.
How can i assign in web config file for admin?Is it the right way to do that or any one have some better concept for that so please reply.
Thanks in advance.