|
-
Jun 3rd, 2003, 04:17 PM
#1
Thread Starter
Junior Member
How to use jscript confirm in VB.NET
I would like a message box on the client side.
Everyone says to use jscript confirm, but how?
Here is what I have so far. No errors but no confirm either.
Function jscriptMsgBox()
Dim response As Boolean
Dim strBuilder As StringBuilder = New StringBuilder()
strBuilder.Append("<script language='Jscript'>")
strBuilder.Append("function myMsgBox() {")
strBuilder.Append("response = confirm("my message");}")
strBuilder.Append("myMsgBox;")
strBuilder.Append("</script>")
RegisterClientScriptBlock("myMsgBox", strBuilder.ToString)
End Function
Yes, I am a newbie so give me a break please.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|