Embedded javascript alert with yes/no/cancel responses in 2.0

Posted on 2006-04-06
Last Modified: 2007-12-19
How can one expand on this example of javascript in 2.0:

Dim scriptKey as String = cmdSalvar.UniqueID & "scriptkey"
Dim script as String = String.Format("<script language=""javascript"">alert('{0}')</script>", errMsg)
Me.Page.RegisterClientScriptBlock(scriptKey , script)

For the alert box to also include a "Yes" or "No" or "Cancel" similar to a vbscript Message box function, and to be able to catch those responses just like the vbscript Message Box function?
Question by:lancerxe
    LVL 12

    Assisted Solution

    This article shows how to use javascript to show confirm box and catch the response,
    LVL 12

    Accepted Solution


    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    Suggested Solutions

    This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
    A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    728 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

    19 Experts available now in Live!

    Get 1:1 Help Now