After much searching I have finally figured out a way to call a jscript "confirm" box from serverside vb.net code. The code I am using is as follows:
Dim sb As New StringBuilder("")
sb.Append("<script language='javascript'>")
sb.Append("if (confirm('Are you sure?')) {document.submit();}")
sb.Append("</script>")
Response.Write(sb.ToString())
Unfortunately, now I can't figure out how to pass the value returned by the "confirm" function back to my vb.net code.
Anybody have an idea for me?
JT
Dim sb As New StringBuilder("")
sb.Append("<script language='javascript'>")
sb.Append("if (confirm('Are you sure?')) {document.submit();}")
sb.Append("</script>")
Response.Write(sb.ToString())
Unfortunately, now I can't figure out how to pass the value returned by the "confirm" function back to my vb.net code.
Anybody have an idea for me?
JT