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 change the url while refreshing?

How to change the url while refreshing?

Scheduled Pinned Locked Moved ASP.NET
questiondatabasehelptutorial
3 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.
  • G Offline
    G Offline
    Gowtham Sen
    wrote on last edited by
    #1

    Dear Expers. I have one doubt regarding page refreshing. I am sending querystring to page(say p1). While I am redirected to the page(p1), I am displaying a messagebox with query string values. I am refreshing my page for every 1 minute. But the query string is remains in the url. So every time I refresh the page, I am getting the message box. I want the message box only once. Not every time. How can I do this? Could you please help me? Thanks and Regards Gowtham

    N 1 Reply Last reply
    0
    • G Gowtham Sen

      Dear Expers. I have one doubt regarding page refreshing. I am sending querystring to page(say p1). While I am redirected to the page(p1), I am displaying a messagebox with query string values. I am refreshing my page for every 1 minute. But the query string is remains in the url. So every time I refresh the page, I am getting the message box. I want the message box only once. Not every time. How can I do this? Could you please help me? Thanks and Regards Gowtham

      N Offline
      N Offline
      naveenieus
      wrote on last edited by
      #2

      Try giving response.clear() then give response.redirect("Querry String")

      G 1 Reply Last reply
      0
      • N naveenieus

        Try giving response.clear() then give response.redirect("Querry String")

        G Offline
        G Offline
        Gowtham Sen
        wrote on last edited by
        #3

        Hi, Thanks a lot. What exactly my problem is, I am sending a messge as a query string with an url. There I am checking any message with the url by evaluation querystring.count. While the count is greater than 0 then I am displaying the message using Page.RegisterStartupScript(). It should be done only once I open the page. So I added in the if loop where the page is not postbacked. Its all working good. But the problem is, I am refresshing the page automatically for certain period of time. I did well. But the problem, is the querystring still in the url. So whenever the page is refreshed, I am getting the message again. If I did as you said, Response.Redirect(), then I am not getting the message. How can I do this? Could you please help me. Thanks and Regards Gowtham Sen

        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