Click here to Skip to main content
15,886,823 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i need a code for refresh the web page in c#4.0
anyone plz help me
Posted

You can redirect on the same page using following code :
C#
Response.Redirect(Request.RawUrl);


If you want to do on clientside and not the server,
JavaScript
document.location.reload()
 
Share this answer
 
Comments
ridoy 28-Dec-12 2:15am    
+5
vinayakJJ 28-Dec-12 9:57am    
accept solution if it helped u
Try this..
C#
Page.Response.Redirect(Page.Request.Url.ToString(), true);
 
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