Add Id in URL by using URL Routing/Rewriting RRS feed

  • Question

  • User251888749 posted

    Currently my URL of login page is like http://xyz.com (http://xyz.com/login.aspx).  User can login by enter three values (Company Id, User Name, Password) in textboxes. 

    But now i wants “Company Id” in URL and other two values (User Name, Password) by the textboxes. Now URL likes


     Also after login keep this URL part (company Id) into the navigation, for example,

             http:// xyz.com /ManageCompanySetting.aspx

    now must be

           http:// xyz.com / CompanyId /ManageCompanySetting.aspx


     By searching net most I found URL rewriting for querystring.

    my problem is how can i get Company Id at login and keep Company Id in Navigation ?

    Friday, October 14, 2011 8:17 AM

All replies

  • User-1598917946 posted

    If you are using IIS 7 then you can perform URI rewriting from IIS only .It has a wizard for both outgoin and incoming URI rewriting else there are plenty of dlls availaible on the net

    Friday, October 14, 2011 8:52 AM