1

I have a message box with just an "OK" button. When the user presses OK I want the page to be refreshed back to the original state.

Message Box Code:

   System.Web.HttpContext.Current.Response.Write("<SCRIPT LANGAUGE='JavaScript'>alert('Donation Successful')</SCRIPT>");

Any Ideas?

Thanks

0

1 Answer 1

4

Try using a redirect in javascript to your page, try something like this:

System.Web.HttpContext.Current.Response.Write(@"<script language='JavaScript'>
                      alert('Donation Successful'); 
                      location.href='www.yoursite.com/page.aspx'; </script>");

Just replace the url in location.href to a valid url to your page.

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

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.