MOHAMED JACKARIAH

MOHAMED JACKARIAH

  • 1.5k
  • 178
  • 32.3k

Dynamic Rewriting website Urls in C#.NET

Jul 30 2012 2:59 AM
Hi friends,

Login credentials i want to use the URL rewriting without using the IIS settings. 

Want to create URL rewrite based on User Id and Password. 

On my site I have a several Level. For Example http://site.com/{0}/{1}/{2}/. . . . /{n}/*.aspx 
here 
1. {0}=> Subscription module 
2. {1}=> Tenant/Template module. 
3. {2}=> Application/Work space module. 
. . . 
. . . 
. . . 
. . . 
n. {n}=> DB/ Template Management Module. 

In the code behind of my Login.aspx page, I get the userId, Password and pass this to a method in my DAL.GetUserByUserId(). 

In my database I have a table called UserObjects, Members and Application_Mapping tables. The method get the data from UserObjects and Members(Here i maintain Groups ADMIN or VIEWER groups) table and display details on the page about the user. 

What I want to happen is when they have loggedIn and are diverted (based on the Members and Application_Mapping table) to corresponding page. Without using the IIS Settings.


Answers (2)