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

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top