how to refresh page

  • Thread starter Alexander Vasilevsky
  • 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
 
A

AAaron123

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top