I have an asp application where I show a "confirm" msg box. I am not able to code my mark up or code behing to capture the result, Can someone help? calls the msg box sub ASPNET_MsgBox_Confirm(Response(0)) Code (markup): the msg box sub Public Overloads Sub ASPNET_MsgBox_Confirm(ByVal Message As String) 'Confirm hiddenMsgDiv.InnerHtml = "<script type=""text/javascript"">confirm('" & Message.Replace("\", "\\").Replace("'", "\'") & "');</script>" End Sub Code (markup): This is what I have for my "alert" but not sure how to go about the confirm <div id="hiddenMsgDiv" runat="server" style="display: none"> </div> Code (markup):
In you javascript code, just assign the result of confirm() to a local variable: var result = confirm(...)