I am using ASP.Net and recieve an message that I could not use the MsgBox.
Error:Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
Here is my code what is the best way to convert to using JavaScript Confirm - notice I am not using a button. All the examples I have seen are with buttons.
Dim msgBoxStr As String = MsgBox("Would you like to open the file in Microsoft Word? Click Open to continue." _
' , MsgBoxStyle.OkCancel, "Warning: Large File.")
If (msgBoxStr = vbOK) Then
'proceed
else
'exit
end
I appreicate any help you can give me.
Start Free Trial