[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 538
  • Last Modified:

Embedded javascript alert with yes/no/cancel responses in asp.net 2.0

How can one expand on this example of javascript in asp.net 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?
0
lancerxe
Asked:
lancerxe
2 Solutions
 
bsdotnetCommented:
This article shows how to use javascript to show confirm box and catch the response,
http://www.htmlite.com/JS006.php
0
 
deanvanrooyenCommented:
0

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now