I want to Reload the same page when I click on reload button.any one give the C# code for achieve this?
Asked
Active
Viewed 8.3k times
-5
-
3What are you using? ASP.NET? – bash.d Apr 02 '13 at 12:20
-
@harry180 it is not working .... – Binoop Apr 02 '13 at 12:26
-
2I've make mistake in my 1-st comment for what I'm truly sorry correct syntax is: `Response.Redirect(Page.Request.RawUrl,false);` – Harry89pl Apr 02 '13 at 12:35
2 Answers
16
You can use
Response.Redirect(Request.RawUrl);
Which I found by googling your title.
You can look there for more informations :

Community
- 1
- 1

phadaphunk
- 12,785
- 15
- 73
- 107
6
You can use like this
Page.Redirect(Page.Request.RawUrl,false);
Or suppose you are on default.aspx
and you want get back on the same page use
Page.Redirect("default.aspx",false);

शेखर
- 17,412
- 13
- 61
- 117