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

Posted on 2008-11-18
Last Modified: 2012-06-22
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.
Question by:mindcool
    LVL 20

    Accepted Solution

    Hi there,
    As part of th Ajax Control Toolkit, there is a control that does exactly what you need:
    The ConfirmButton (

    Author Comment

    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.
    LVL 20

    Expert Comment


    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:


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    I have developed many web applications with asp & and to add and use a dropdownlist was always a very simple task, but with the new, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
    In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now