-5

I want to Reload the same page when I click on reload button.any one give the C# code for achieve this?

Binoop
  • 171
  • 1
  • 2
  • 14

2 Answers2

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