473,586 Members | 2,854 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP.NET Messagebox

tma
How are message boxes (not the browser pop-up variety but rather the .NET
msgbox) achieved in ASP.NET?

Nov 18 '05 #1
6 4023
If your not talking about browser pop-up what results are you expecting?
Something like the javascript alert box?

remember asp.net is server side code, if you want to do any form of
window control you have to output client side code.

tma wrote:
How are message boxes (not the browser pop-up variety but rather the .NET
msgbox) achieved in ASP.NET?

Nov 18 '05 #2
You can't. How could you? It would mean a server side messagebox, not a
client side one. It would also mean that the client would have to have the
..NET framework.

You can use embedded windows forms controls in asp.net pages, but now you
are talking about major security configuration issues and requiring clients
to install the .net framework all so they could have a different
messagebox...

"tma" <tm*@allisconfu sing.net> wrote in message
news:OE******** ******@TK2MSFTN GP10.phx.gbl...
How are message boxes (not the browser pop-up variety but rather the .NET
msgbox) achieved in ASP.NET?

Nov 18 '05 #3
tma
I'm not familiar with a JavaScript alert box, but I see how this question
seems stupid given what has been pointed out in the replies. I'm (obviously)
a novice at this .NET stuff and struggle putting together what I experience
versus what I can deliver via Visual Studio.

Thank you both for the speedy replies!
"tma" <tm*@allisconfu sing.net> wrote in message
news:OE******** ******@TK2MSFTN GP10.phx.gbl...
How are message boxes (not the browser pop-up variety but rather the .NET
msgbox) achieved in ASP.NET?

Nov 18 '05 #4
check this out.
I have done it on one of my projects.
It's not easy but it can be done.

http://aspnet.4guysfromrolla.com/articles/021104-1.aspx

--Landi

"tma" <tm*@allisconfu sing.net> wrote in message
news:OE******** ******@TK2MSFTN GP10.phx.gbl...
How are message boxes (not the browser pop-up variety but rather the .NET
msgbox) achieved in ASP.NET?

Nov 18 '05 #5
all you have is either

window.open
window.showModa lDialog
or
alert() in javascript to do this
"tma" <tm*@allisconfu sing.net> wrote in message
news:OE******** ******@TK2MSFTN GP10.phx.gbl...
How are message boxes (not the browser pop-up variety but rather the .NET
msgbox) achieved in ASP.NET?

Nov 18 '05 #6
You can execute a line of code like this when you want a message box to be
displayed.
(This writes out the necessary client side javascript to your HTML page to
make the alert pop up as soon as the page is sent to their browser.)

RegisterStartup Script("startup Script", "<script
language=JavaSc ript>alert('Thi s is my message.');</script>");

Here's more info:
http://msdn.microsoft.com/library/de...criptTopic.asp

Here are a couple controls you might find to be useful:
http://www.metabuilders.com/Tools/ConfirmedButtons.aspx
http://www.jttz.com/msgbox/index.htm

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

"tma" <tm*@allisconfu sing.net> wrote in message
news:OE******** ******@TK2MSFTN GP10.phx.gbl...
How are message boxes (not the browser pop-up variety but rather the .NET
msgbox) achieved in ASP.NET?

Nov 18 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
541
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...
8
13099
by: Dennis C. Drumm | last post by:
I have ordered the book .NET Framework Solutions, In Search of the Lost Win32 API by John Paul Meuller which I think will help answer some of my questions I have regarding making custom MessageBoxes, but that isn't going to be here for a few days. So, I thought I would ask you guys how to put one of hte standard MessageBox icons, such as...
2
30135
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...
8
2443
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...
4
1920
by: Tressa | last post by:
I have a messagebox that I only want to pop up only if it is not already being displayed on the screen. My code is still poping up the messagebox even though it is on the screen. What am I doing wrong here. Any suggestions on how to fix this using System; using System.Collections; using System.ComponentModel;
3
7420
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...
0
4092
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 {
20
8879
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...
10
2338
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...
4
1997
by: Larry Woods | last post by:
I have a Messagebox that looks like: MessageBox.Show("There are pending changes for this patient. Do you want to continue to close?", "Pending Changes", MessageBoxButtons.YesNo, MessageBoxIcon.Question) When I execute the Messagebox.Show, then press either 'Yes' or 'No' I get 25 of the following Messageboxes: "incorrect syntax near the...
0
7911
marktang
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...
0
7839
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8338
jinu1996
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...
1
7954
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8215
tracyyun
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...
0
6610
agi2029
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...
0
5390
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...
0
3864
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1448
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.