Hello,
I use in my application MessageBox.Show and it works perfectly when I run
this application on my local computer ( http://localhost). When I diployed
this application on the server, however, it does not work. It does not give
me even an error message, but the screen is just freezed (it is running open
the page). What are the requirements for the MessageBox.Show to work ? I
suppose something is missiong on the server as the same MessageBox.Show
works well on my local computer.
Thank you for your advice,
Kiyomi 3 2684
>I use in my application MessageBox.Show and it works perfectly when I run this application on my local computer (http://localhost). When I diployed this application on the server, however, it does not work. It does not give me even an error message, but the screen is just freezed (it is running open the page). What are the requirements for the MessageBox.Show to work ? I suppose something is missiong on the server as the same MessageBox.Show works well on my local computer.
Is this a ASP.NET web application? If so you shouldn't be using
MessageBox, it's for windows applications.
Mattias
--
Mattias Sjögren [C# MVP] mattias @ mvps.org http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Thank you, Mattias, for your prompt reply. Yes, it is a ASP.NET web
application. I should use javascript instead, then. But I wonder why it
works on my local computer ?
Thank you,
Kiyomi
"Mattias Sjögren" <ma************ ********@mvps.o rg> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. .. I use in my application MessageBox.Show and it works perfectly when I run this application on my local computer (http://localhost). When I
diployedthis application on the server, however, it does not work. It does not
giveme even an error message, but the screen is just freezed (it is running
openthe page). What are the requirements for the MessageBox.Show to work ?
Isuppose something is missiong on the server as the same MessageBox.Show works well on my local computer.
Is this a ASP.NET web application? If so you shouldn't be using MessageBox, it's for windows applications.
Mattias
-- Mattias Sjögren [C# MVP] mattias @ mvps.org http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com Please reply only to the newsgroup.
When you say "works", you mean that the message box shows up on the system
where the .NET code is running, yes? So that's your system when you're in
development mode, and the IIS server when it's deployed. So as far as you
know it might actually be working, showing a message box on the server (or
at least trying to). The messagebox on the server might be running in an
environment where it just won't show because it's showing in an invisible
Windows station context. I'm assuming you're debugging or something because
it's not very useful for a user to be sitting there with a dead web page
because a messagebox is showing on some remote server somewhere.
--
Phil Wilson [MVP Windows Installer]
----
"Kiyomi" <k.*******@unes co.org> wrote in message
news:OK******** *****@tk2msftng p13.phx.gbl... Thank you, Mattias, for your prompt reply. Yes, it is a ASP.NET web application. I should use javascript instead, then. But I wonder why it works on my local computer ?
Thank you,
Kiyomi "Mattias Sjögren" <ma************ ********@mvps.o rg> wrote in message news:%2******** ********@TK2MSF TNGP11.phx.gbl. .. >I use in my application MessageBox.Show and it works perfectly when I >run >this application on my local computer (http://localhost). When I diployed >this application on the server, however, it does not work. It does not give >me even an error message, but the screen is just freezed (it is running open >the page). What are the requirements for the MessageBox.Show to work ? I >suppose something is missiong on the server as the same MessageBox.Show >works well on my local computer.
Is this a ASP.NET web application? If so you shouldn't be using MessageBox, it's for windows applications.
Mattias
-- Mattias Sjögren [C# MVP] mattias @ mvps.org http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com Please reply only to the newsgroup.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Rich Tasker |
last post by:
I have a strange situation. A simple call to MessageBox.Show("XXX", "YYY")
does not display the message in the messagebox with a visible font. Based on
the content of the messagebox, the box sizes properly so I know there is a
message in there. I also found a keyboard shortcut where <ctrl>+<insert>
will copy the contents of the messagebox to the clipboard in plain text. I
see my messagebox text in the clipboard contents but not in the...
|
by: Dennis C. Drumm |
last post by:
This is a restatement of an earlier post that evidently wasn't clear. I am
building a custom MessageBox dialog that has, among other things, a few new
button options (yes to all, no to all, etc.) and would like to make the
dialog look and act like the standard MessageBox. Therefore, I would like to
put in the message section the same type of icons found in the MessageBox
dialog, such as MessageBoxIcon.Exclamation. In another post here I had...
|
by: Saso Zagoranski |
last post by:
Hi!
I'm trying to make my own MessageBox... What I would like to know is, how
the MessageBox class is implemented?
I could have something like:
new MyMessageBox().ShowDialog();
but I would like the solution used by MessageBox, where you call the static
Show() method, which
returns a DialogResult value...
|
by: Sin |
last post by:
I'm currently evaluating VC.NET as the new platform for the company I work
for and things are looking grim... We're up against another IDE which took
me about 5 minutes to master and I've been bitching at .NET for the whole
day now not being able to do something as simple as showing a textbox's
content in a damn MessageBox...
The TextBox.Text is a String... MessageBox takes a LPCSTR (plain single byte
char*)... All our current code base...
|
by: alex_f_il |
last post by:
The class centers MessageBox inside the parent rectangle.
Enjoy!
using System;
using System.Windows.Forms;
using System.Text;
using System.Drawing;
using System.Runtime.InteropServices;
namespace Utils {
| |
by: Peter E. Granger |
last post by:
I'm having a strange problem (or at least it seems strange to me) trying to
display a MessageBox in a VC++ .NET forms application.
If I put the call to MessageBox::Show in the form's .h file, it works just
fine.
If I put the call in the .cpp file, I get the following two errors:
error C2653: 'MessageBoxA': is not a class or namespace name
error C2660: 'System::Windows::Forms::Control::Show': function does not take
|
by: Russ |
last post by:
I've been trying to figure out how to show a simple messagebox with an
OK button in my web client program (C#). I have looked at every
reference to JScript and MessageBox that seemed even remotely like it
could help, both in the VS help and in this NG. I found lots of
examples of people saying how easy it is and showing examples, and
examples in the help. But I have two problems:
1. All the examples show all the code in HTML, usually...
|
by: Nuno Magalhaes |
last post by:
Why does the MessageBox.Show function in the thread below changes the
program behaviour, in other words, the APListView becomes filled with
values with a call to RefreshAPListView. Without the MessageBox.Show
function, in my laptop, the code doesn't get past the inner loop where
there is a Thread.Sleep(10).
Here is the code. Does anyone know why? Thanks.
private void APRun()
{
|
by: gewe |
last post by:
I have a form (sizeable border, shows in taskbar, nothing unusual), which
is the main form of my application (called MainForm). During an operation
progress is shown in another form, that is shown from within the main form
with: pf.Show(this);
When I have to show a messagebox, the messagebox is shown behind the main
form. The messagebox is shown from within the main form. I tried both:
MessageBox.Show(this, ...);
and:...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |