Click here to Skip to main content
15,905,963 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear All,
I have multiple user roles like Admin,Client,Resource.
biased on there login, they are redirect in there respective folder.

The problem is,

How can i set defaultUrl property in web.config file for multiple folders.
For single folder/user i have set it as defaultUrl="Pages/Account/Dashboard.aspx"
but how can i set it for multiple folders

Please suggest your ideas on this,

Waiting for your reply.

-
YRishi
Posted
Comments
Sandeep Mewara 26-Apr-11 2:03am    
How can a default URL point to multiple folders?
yrishi 26-Apr-11 2:53am    
if my question is wrong, please correct me

1 solution

It sounds to me like you need to implement your own ASP.net Membership Provider, or at least extend an existing one:

http://msdn.microsoft.com/en-us/library/f1kyba5e.aspx[^]

If your requirement is to redirect to a different url depending on Role, I'd try overriding the ValidateUser method of the provider, call base.ValidateUser inside your override and add any custom redirection logic after the call to the base class.
 
Share this answer
 
Comments
yrishi 26-Apr-11 4:17am    
Thanks for your reply. I will try it out.

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