Solved

ASP.Net - Running Website Locally Error

Posted on 2013-06-18
5
239 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

706 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

19 Experts available now in Live!

Get 1:1 Help Now