473,396 Members | 2,121 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 4010
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*@allisconfusing.net> wrote in message
news:OE**************@TK2MSFTNGP10.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*@allisconfusing.net> wrote in message
news:OE**************@TK2MSFTNGP10.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*@allisconfusing.net> wrote in message
news:OE**************@TK2MSFTNGP10.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.showModalDialog
or
alert() in javascript to do this
"tma" <tm*@allisconfusing.net> wrote in message
news:OE**************@TK2MSFTNGP10.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.)

RegisterStartupScript("startupScript", "<script
language=JavaScript>alert('This 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*@allisconfusing.net> wrote in message
news:OE**************@TK2MSFTNGP10.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
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...
8
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...
2
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.)...
8
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...
4
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...
3
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...
0
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; ...
20
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...
10
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...
4
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,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
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...
0
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,...

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.