Click to See Complete Forum and Search --> : User Interactive mode


Bill Crawley
February 10th, 2006, 09:07 AM
Hi All,

Within asp.net in my aspx code I have a message box. When I'm debuging , it errors saying that a message box cannot be displayed in this mode and to switch to userinteractive mode.

Can someone tell me how I do that so that I can see the messagebox.

Thanks

mmetzger
February 10th, 2006, 01:01 PM
You really can't. A MessageBox is part of Windows.Forms which requires a logged in user to execute the app to show it. The ASP.NET account which runs the code is run as a service and can't show a WinForms component.

Best suggestion is to use a Response.Write in the page or write to a Debug or Trace log.

hitai
January 8th, 2007, 12:04 AM
I`m wondering, why r we not allowed to do this. Let`s say i would like to simply display a modelless windows form using System.Windows.Form.Show ( ). Can i do that?