Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to rewrite the url ?

How to rewrite the url ?

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdatabasewindows-admintutorial
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sudhanshu Mani Tripathi
    wrote on last edited by
    #1

    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 .

    A T 2 Replies Last reply
    0
    • S Sudhanshu Mani Tripathi

      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 .

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      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

      S 1 Reply Last reply
      0
      • S Sudhanshu Mani Tripathi

        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 .

        T Offline
        T Offline
        thatraja
        wrote on last edited by
        #3

        i found this one[^] in CP. Nice Article.

        thatraja


        Tips/Tricks|Brainbench certifications|Facebook|Twitter

        1 Reply Last reply
        0
        • A Abhijit Jana

          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

          S Offline
          S Offline
          Sudhanshu Mani Tripathi
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups