Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6227121
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T09:09:34+00:00 2026-05-24T09:09:34+00:00

I am trying to display some text using MessageBox.Show as shown below in a

  • 0

I am trying to display some text using MessageBox.Show as shown below in a page_load event in ASP.NET. Before anyone jumps on the case why I am using it in ASP.NET, the use is for debugging only on my own dev box for a special need. There’s a reference to System.Windows.Forms in the app.

I used it a few years ago so I know WinForm’s MessageBox works. I am using .NET 4.0 and VS 2010. I don’t think anything related to this function has changed.

MessageBox.Show("Message", "Caption", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly); //used also ServiceNotification option

Any ideas why the message box doesn’t display? I have only that line in the code.

ADDITION:

I am VERY AWARE of the message box thing implications. It’s a temporary thing for debugging only. The line won’t go into production. I have no access to javascript. Please put your thought into why it doesn’t work instead of why I shouldn’t be using it. I have used it before in 2.0 and it does work. I want to know if the newer .NET changed anything or I misused the option.

Direct Answer: it works in Visual Studio’s web server , not in IIS.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T09:09:35+00:00Added an answer on May 24, 2026 at 9:09 am

    The web application is hosted in a process that does not have a desktop, so you cant see any messageboxes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been trying to display text using a Quartz context, but no matter what
I am trying out some globalization in an asp.net mvc2 application but can't get
Greetings! I've been trying to display some HTML with Java using JEditorPane . But
Please look at my code. I am trying to display some dynamic customers in
I am trying to display the text from json in a list view. I
I'm using a Flash TextField control to display some HTML content inside a Flash
I am new to Javascript and trying to extract some text stored in an
I'm trying to change wikitext into normal text using Python regular expressions substitution. There
I'm trying to display an array of postcodes onto a google map using PHP
I am trying to display some ImageView and TextView in a TableLayout. However, for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.