Click here to Skip to main content
15,899,679 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i wan to need to put multiple <form> tag for the authantication for my adminpanel. so how can i put in web.config file.
actuly i have two admin panel in my website so when i open any of that it always need a login page.

waiting for reply....



thank you
Posted
Comments
tulasiram3975 9-Apr-12 5:50am    
Can You Elaborate Clearly....

1 solution

What I understand is that, U have 2 admin panels for Ur website, and depending upon the user call U need to show him/her the corresponding login page.

Firstly, I want to say U cann't have two form tag in web.config file for authentication setting.

What U can do is a trick,

1. Create a generic page without any layout, just the code file will suffice. This page will serve as a gateway between two login panels.

2. Write a logic in the above stated page to redirect the user to the proper login page.

3. In the tag, put the login URL pointing to the above stated generic login page.

If the above solution solves your problem please mark as answer.
 
Share this answer
 
Comments
Yatin_Chauhan 12-Apr-12 2:16am    
can i do that by using "<location>" tag. how its use?""
senguptaamlan 12-Apr-12 3:15am    
there is no solution for this problem by using tags, at least as per my knowledge.
Yatin_Chauhan 12-Apr-12 9:35am    
can i user "location" tag in web.confige file to solve this problem??

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900