How to change the url while refreshing?
-
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
-
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
Try giving response.clear() then give response.redirect("Querry String")
-
Try giving response.clear() then give response.redirect("Querry String")
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