Refresh Page. How can I do this?

S

Shapper

Hello,

I have a function which changes culture and sets a new session value.
I want to refresh the present page after the function makes the changes.

How can I do this?

Thanks,
Miguel
 
A

Andrei Pociu

Greetings,

Response.AddHeader("Refresh","2;URL=thePage.aspx");

and

Response.Redirect("thePage.aspx");

might work aswell.

But since the browser might cache the page, it's also good to use these meta
tags inside the <head></head> tags:

<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Refresh Page. Shouldn't this be simple?! 2
Culture 1
aspx.vb file question 2
Culture 3
Get Session Variable Value 1
Update Panel and Event 2
What is wrong with this code line? 4
Page refresh question 2

Top