473,385 Members | 1,712 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,385 software developers and data experts.

Message Box for Web-Application

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?
Oct 13 '08 #1
3 1812

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).


"Greg" <Ac**********@newsgroups.nospamwrote in message
news:90**********************************@microsof t.com...
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?

Oct 13 '08 #2
On Oct 13, 1:14 pm, Greg <AccessVBA...@newsgroups.nospamwrote:
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.
Oct 13 '08 #3
"Ignacio Machin ( .NET/ C# MVP )" <ig************@gmail.comwrote in
message
news:60**********************************@j22g2000 hsf.googlegroups.com...
There is nothing like that in asp.net , you can use the simplest
form , an alert().
This, plus the related return() method which supports basic Yes/No
functionality, handles pretty much everything needed in ASP.NET
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.
http://www.codeproject.com/KB/ajax/D...dal_Popup.aspx
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Oct 13 '08 #4

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

Similar topics

1
by: Carol | last post by:
Hi, I am using VB.NET2003 on a Windows XP. I tried to write a simple program to send email with attachment (see below for the code). I add reference to "Microsoft CDO 1.21 library" and "Microsoft...
1
by: Michael | last post by:
Hello, I've read a lot of threads on this subject, but they typically go back to a problem with the smtp server configuration. In my case, everything works great until I uncomment the one line...
1
by: SMG | last post by:
Hi All, My Send mail system was working very fine, today suddenly it started giving me following error. Can any one suggest why this is happening so. I am using system.Web.Mail "The requested...
5
by: lds | last post by:
I am getting the following error: The "SendUsing" configuration value is invalid. Description: An unhandled exception occurred during the execution of the current web request. Please review the...
1
by: Ulan | last post by:
Hi, Sometimes I have a DimeFormatException raised when the client is trying to upload file to my web services. It's not happening all the times which makes this bug unreproducable. Here is...
2
by: keithb | last post by:
This is on a remote server. Everything works in the development envirmonment. Any ideas? Thanks, Keith Failed to update database "C:\BTM_ROOT\APP_DATA\ASPNETDB.MDF" because the database is...
0
by: WebDev2 | last post by:
I can't get AJAX.NET Pro to work. I keep getting a Compiler Error Message: CS0246: The type or namespace name 'AjaxPro' could not be found (are you missing a using directive or an assembly...
2
by: Eugene Anthony | last post by:
I am having a problem with my try and catch found in the code bellow. It never works when there is no msg in the queue. The code bellow is to read and process one message at a time. Upon completing...
4
by: gurufordy | last post by:
Hello. Trying to use the ASP.net user functionality but it keeps failing on me. I have created a login and registration page for my site. When you fill in the registration form it should send a...
3
by: chandhrakv | last post by:
Event code: 3005 Event message: An unhandled exception has occurred. Event time: 11/18/2009 3:03:53 PM Event time (UTC): 11/18/2009 9:33:53 AM Event ID: ef3014ea80424b00b1bc2e7095fffe4c ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
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,...
0
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...

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.