Using window.confirm

J

JJ297

I want a confirmation as such and after the user clicks the okay
button go to the home page. Do I do something as such?

Submit.Attributes.Add("onclick", "return window.confirm('Your entry
was submitted.')")
Response.Redirect("Library.aspx")

Do I put it in the page load or submit_click?

Thanks.
 

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

Members online

No members online now.

Forum statistics

Threads
473,990
Messages
2,570,211
Members
46,796
Latest member
SteveBreed

Latest Threads

Top