How to display Yes /No confirmation box instead of OK/Cancel

Posted on 2005-05-12
Last Modified: 2010-04-07
I am able to display an OK/Cancel box using
Me.cmdNext.Attributes.Add("onclick", _
                                  "return confirm('Are you sure you want to Post Data?');")

How can I display a YES/NO confirmation box??
Question by:wilkersons
    LVL 9

    Assisted Solution

    LVL 11

    Accepted Solution

    There is no built in display box to display yes/no options.

    Your only options would be to pop up an html page that has the looks of a Yes/No box or stick to the confirmation box.


    LVL 26

    Assisted Solution

    if u r comfortable with using vbscript (supported by IE only) .. then u could script using that and use

    msgbox "Are you sure you want to Post Data", vbquestion+vbyesno

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Suggested Solutions

    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…
    Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    745 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

    16 Experts available now in Live!

    Get 1:1 Help Now