Link to home
Start Free TrialLog in
Avatar of lancerxe
lancerxe

asked on

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?
SOLUTION
Avatar of bsdotnet
bsdotnet

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial