How to rewrite the url ?
-
I want to rewrite the url based on query string in asp.net with c#. it means if url comes http://app.tasktrek.in/Citylist.aspx?Id=1 then it should be look like http://app.tasktrek.in/Citylist.aspx/Noida in url where Id=1 for noida , Also have any solution in which I do not want to confiure IIS? How to do it in asp.net .
-
I want to rewrite the url based on query string in asp.net with c#. it means if url comes http://app.tasktrek.in/Citylist.aspx?Id=1 then it should be look like http://app.tasktrek.in/Citylist.aspx/Noida in url where Id=1 for noida , Also have any solution in which I do not want to confiure IIS? How to do it in asp.net .
URL Rewriting is very much common thing for an ASP.NET Application. There are many way that you can do it and depends on your ASP.NET Framework it may simple to implement also. Did you search google before posting the question over here ? Here is few links that will help you. URL Rewriting with ASP.NET[^] http://msdn.microsoft.com/en-us/library/ms972974.aspx[^]
Cheers ! Abhijit Jana | MVP Web Site : abhijitjana.net | Follow Me @ twitter Read my Latest Article :Mastering Debugging in VS 2010
-
I want to rewrite the url based on query string in asp.net with c#. it means if url comes http://app.tasktrek.in/Citylist.aspx?Id=1 then it should be look like http://app.tasktrek.in/Citylist.aspx/Noida in url where Id=1 for noida , Also have any solution in which I do not want to confiure IIS? How to do it in asp.net .
-
URL Rewriting is very much common thing for an ASP.NET Application. There are many way that you can do it and depends on your ASP.NET Framework it may simple to implement also. Did you search google before posting the question over here ? Here is few links that will help you. URL Rewriting with ASP.NET[^] http://msdn.microsoft.com/en-us/library/ms972974.aspx[^]
Cheers ! Abhijit Jana | MVP Web Site : abhijitjana.net | Follow Me @ twitter Read my Latest Article :Mastering Debugging in VS 2010
Hi Abhijit I studied the above url that u have sent but i am not getting any changes in url when implement. Actually i want if incoming url is http://localhost:53365/UrlRewrite/City.aspx?Id=1" then it convert into http://localhost:53365/UrlRewrite/City.aspx/Noida where noida is cityname that depends on querysring value. please help me.