0

I have a webpage, in that page I have a button. How can I refresh the page when clicking on that button?

1
  • You have to provide more info. Commented Oct 5, 2009 at 10:00

4 Answers 4

1
<input type="button" value="Reload" onclick="window.location.reload(true);" />

However, if the page is created from a postback, you would need to use an asp:Button control instead, and let another postback refresh the page. You also have to make sure that the correct code is executed in the code behind to recreate the correct result.

Sign up to request clarification or add additional context in comments.

Comments

0

are you using an

<asp:button />

tag?

If so the page should refresh when the button is clicked by default.

1 Comment

ya mr.paul i am using asp button
0
<form>
   <input TYPE="submit" VALUE="Submit Information Now" />
</form>

SUBMIT is a TYPE attribute value to the INPUT element for FORMs. It specifies a button that, when activated, submits the information entered to a processing script. If there are multiple SUBMIT buttons in a form, only the one activated should be sent to the form processing script.

Comments

0

When you press button your page must refresh, only not refresh that controls which are in AJAX Update Panel

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.