• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 262
  • Last Modified:

Show Custom Popup Message and when user click "OK" resume next page

For a successfull operation I wanna show a custom popup message(message will be given inside code) and when user click "OK" it will commit database if user choose cancel will roll it back.
  • 2
1 Solution
Hi there,
As part of th Ajax Control Toolkit, there is a control that does exactly what you need:
The ConfirmButton (http://www.asp.net/AJAX/AjaxControlToolkit/Samples/ConfirmButton/ConfirmButton.aspx)
mindcoolAuthor Commented:
Confirm Button as it name say is a button control. Handles click event but I dont have a button to validate something. Instead I want to give error messages by checking some logic or just for confirmation without using button.

No, it's not a Button control, it extends a button control (or a control derived of).
If you don't have any button, how the user "commits" to the database, as you said in your first post?

Anyway, if you are looking for "give error messages by checking some logic", you are talking about a validator:
ASP.NET has a lot of them built in:

More in depth:

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now