Advertisement

03.19.2008 at 08:48AM PDT, ID: 23254044
[x]
Attachment Details

MsgBox not working - how do I convert to Javascripts Confirm

Asked by tjgilbert in JavaScript, .NET, Programming for ASP.NET

Tags: Microsoft, ASP.Net, 2.0

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
 
Loading Advertisement...
 
[+][-]03.19.2008 at 08:52AM PDT, ID: 21162732

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.19.2008 at 08:55AM PDT, ID: 21162770

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.19.2008 at 08:57AM PDT, ID: 21162793

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.19.2008 at 08:59AM PDT, ID: 21162809

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.19.2008 at 09:02AM PDT, ID: 21162840

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.19.2008 at 09:10AM PDT, ID: 21162905

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.19.2008 at 09:19AM PDT, ID: 21162996

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.19.2008 at 09:22AM PDT, ID: 21163025

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: JavaScript, .NET, Programming for ASP.NET
Tags: Microsoft, ASP.Net, 2.0
Sign Up Now!
Solution Provided By: tgerbert
Participating Experts: 3
Solution Grade: A
 
 
[+][-]03.19.2008 at 10:02AM PDT, ID: 21163417

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628