Message Box for Web-Application

G

Greg

Is there an equivelant message box (such as in a Windows Application) I can
use for a Web Application? I've found some examples of JavaScript message
boxes, but I would rather use something that's built in instead, such as
messagebox.show (used in VB.Net), if it exists?

I'd like to be able to respond to Yes, No, Cancel, etc events as well and
have it shown in Modal as well.

If there isn't, does anyone know of a simple way to achieve it?
 
S

sloan

You understand that asp.net.....at the end of the day.....is just a very
fancy (and very nice) way to push html (and optionally javascript code) to
the browser.

There is no such thing as MessageBox.Show on web application.
(I'm speaking in general terms here, for you nay sayers....)

Silverlight one of the things that allows C# code to run inside the browser,
but I'm fairly certain that isn't what you're asking.

..........

At the end of the day, the browser is going to be sent html/javascript code
that is displayed (or ran) on the browser.

....................

Check telerik.com if you want "very nice" messages boxes already done for
you. (This cost$, fyi).
 
I

Ignacio Machin ( .NET/ C# MVP )

Is there an equivelant message box (such as in a Windows Application) I can
use for a Web Application? I've found some examples of JavaScript message
boxes, but I would rather use something that's built in instead, such as
messagebox.show (used in VB.Net), if it exists?

I'd like to be able to respond to Yes, No, Cancel, etc events as well and
have it shown in Modal as well.

If there isn't, does anyone know of a simple way to achieve it?

There is nothing like that in asp.net , you can use the simplest
form , an Alert . For something fancier you can implement your own (or
find one). You could for example similuate it by using a DIV centered,
the rest of the page will be unavailable using a silk control? (I do
no really remember the name of the control) Then you can create the
buttons you need as well as handle the clicks as you want back in the
server.

I'm pretty sure something like this should exist already.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top