Click here to Skip to main content
15,893,337 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hallo,

I do have a button on my master page that allows the user to change the language. If he clicks on the button (which is on the master page), I want to reload the entire page (the master and the main page) in code behind. How can I do that?
Posted

Something like:

C#
Response.Redirect(HttpContext.Current.Request.Url.ToString(), true);
 
Share this answer
 
One of the easy and not so eligant solution is to use

Response.Redirect(Request.RawUrl);


in the button click event.

Alternatively, you can use ajax / javascript to reload the page.
window.location.reload()
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900