how to refresh page

  • Thread starter Thread starter Alexander Vasilevsky
  • Start date Start date
A

Alexander Vasilevsky

How to restart the page (call Page_Load) in button handling pressing?
Need to update the contents of accounting of the text fields...


http://www.alvas.net - Audio tools for C# and VB.Net developers + Christmas
Gift
 
Mark Rae said:
A very easy method is to have a button which simply redirects the page to
itself. E.g if the page is called "default.aspx",
Response.Redirect("default.aspx", false);
Excuse me for butting in, but is that better than:

<input type="button" onclick="window.location.href = 'default.aspx"
value="Refresh" />

Or are they both OK?
 
Back
Top