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.
mindcoolAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.