• 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.
0
mindcool
Asked:
mindcool
  • 2
1 Solution
 
Juan_BarreraCommented:
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)
 
0
 
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.
0
 
Juan_BarreraCommented:
mindcool,

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:
http://msdn.microsoft.com/en-us/library/aa479013.aspx

More in depth:
http://msdn.microsoft.com/en-us/library/aa479045.aspx


0
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