Solved

ASP.Net - Running Website Locally Error

Posted on 2013-06-18
5
240 Views
Last Modified: 2013-06-19
Good Day Experts!

I am running our website locally so I can test making adjustments to it.  I am a windows VB.Net coder by practice but need to learn this ASP.Net.  

I have created a page and added a LinkButton in hopes of firing off this page.  However, I am getting an error "It is invalid to show a modal dialog or form when the application is not running in UserInteractive mode."

It has been suggested to me to set Windows services to "allow interaction with desktop".  Problem is I don't know where to set this at on my computer.

Can you help me set this?

Thanks,
jimbo99999
0
Comment
Question by:Jimbo99999
  • 3
5 Comments
 
LVL 25

Expert Comment

by:Luis Pérez
ID: 39256630
Can you post the code in your page and tell us exactly what you want to do?
0
 

Author Comment

by:Jimbo99999
ID: 39256744
Good Day...thanks for repsonding.  This is my first attempt at ASP.Net and it is what appears to be a simple page functionality wise.  In order to find if it is "system" related, I just made a another page with only a label on it and receive the same error.  

So, does it feel like locally I do not have something setup correctly if I cannot even fire up a dummy page from behind a LinkButton?  

I am trying to use this code --> Response.Redirect("Copy of ReportList.aspx")

Thanks,
jimbo99999
0
 
LVL 8

Accepted Solution

by:
johny_bravo1 earned 500 total points
ID: 39256973
Hi  Jimbo99999,

I think you are trying to display messagebox ( as you are useful to VB.Net coding its quite usual) but in asp.net there is no messagebox, you  need to use Javascipt/Jquery to get message boxes.

e.g,

 Protected Sub YourButton_Click(sender As Object, e As System.EventArgs)
    MesgBox("Test")
End Sub


Private Sub MesgBox(ByVal sMessage As String)
   Dim msg As String
   msg = "<script language='javascript'>"
   msg += "alert('" & sMessage & "');"
   msg += "</script>"
   Response.Write(msg)
End Sub
0
 

Author Comment

by:Jimbo99999
ID: 39257329
What  a learning curve.  The page I put my linked button on was the "home" page of the reporting site that is launched from the main site.  I put the page that is to be called from that linked button in the reporting site.  In front of the "Copy of ReportList.aspx" I put the path of the reporting site and it worked!!!  It is great that it did but I am trying to wrap my head around why it did.

If I was already on the "home" page of the reporting site, whay would I have to qualify the location of this new page I added when it is in the reporting site solution?  Perhaps it has something to do with this whole thing being initiated from the main site.

jimbo99999
0
 

Author Closing Comment

by:Jimbo99999
ID: 39259224
Thanks... I will archive your reply for my future reference.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now