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. Url changes but page stays on the same page

Url changes but page stays on the same page

Scheduled Pinned Locked Moved ASP.NET
regexquestion
2 Posts 2 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.
  • C Offline
    C Offline
    CodingYoshi
    wrote on last edited by
    #1

    I have a site with a page whose url is like: http://localhost:2324/Page2 When the back button of browser is pressed the url changes to http://localhost:2324/Page1 However, the browser still shows contents of page2. Obviously if I press refresh then the browser refreshes the page. Any ideas?

    CodingYoshi Artificial Intelligence is no match for Human Stupidity.

    J 1 Reply Last reply
    0
    • C CodingYoshi

      I have a site with a page whose url is like: http://localhost:2324/Page2 When the back button of browser is pressed the url changes to http://localhost:2324/Page1 However, the browser still shows contents of page2. Obviously if I press refresh then the browser refreshes the page. Any ideas?

      CodingYoshi Artificial Intelligence is no match for Human Stupidity.

      J Offline
      J Offline
      jkirkerx
      wrote on last edited by
      #2

      You have to fix the error in your URL map. Since Page2 did not have an extension, then it must be a mapped value to lets say page2.aspx. You as a programmer control the mappings (page2) that are sent to IIS Server for reverse mapping back to a page2.aspx?value=1, using your map as reference. It is in my opinion that your trying to do too much at once. The implementation of query strings plus learning how to program or structure url mappings for IIS Server seems to be confusing you. You may want to consider creating a paper map, like a visio diagram that holds the data structure of your program, so you can confirm that every possible scenario works first on paper in query strings, and then create your url map according to your Visio.

      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