473,404 Members | 2,174 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,404 software developers and data experts.

messageBox in ASP pages

Hello

How can I send messages to user like messageBox from a
ASP page without doing postback over the page,

thanks for your help

Oscar
Jul 21 '05 #1
3 2212
Server controls can not take action on the client, so in your button click
event add....

response.write("<scpript language=javascript>window.alert('message
here')</script>")

or use show modal dialog.

Jim

"Oscar Sanchez" <or**@msg.com> wrote in message
news:46****************************@phx.gbl...
Hello

How can I send messages to user like messageBox from a
ASP page without doing postback over the page,

thanks for your help

Oscar

Jul 21 '05 #2
Or.... Keep a panel around and make it visible, but then you need a
postback.
"Oscar Sanchez" <or**@msg.com> wrote in message
news:46****************************@phx.gbl...
Hello

How can I send messages to user like messageBox from a
ASP page without doing postback over the page,

thanks for your help

Oscar

Jul 21 '05 #3
Hi Oscar,

In addition to Jim's suggestion, you can also call MsgBox in VBScript.
Please refer to the following KB article:

INFO: Internet Explorer Script Prompts and MBCS/Unicode
http://support.microsoft.com/?id=211147

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! ¨C www.microsoft.com/security
This posting is provided ˇ°as isˇ± with no warranties and confers no rights.

Jul 21 '05 #4

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...
2
by: Greg Bacchus | last post by:
Hi, I'm getting an exception that really has me stumped. It's sporadic at best, it's only happened a handful of times. This particular time it happened when the user pressed 'Alt-S' to save the...
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.)...
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...
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; ...
6
by: tma | last post by:
How are message boxes (not the browser pop-up variety but rather the .NET msgbox) achieved in ASP.NET?
3
by: Oscar Sanchez | last post by:
Hello How can I send messages to user like messageBox from a ASP page without doing postback over the page, thanks for your help Oscar
2
by: Visual Systems AB \(Martin Arvidsson\) | last post by:
Hi! Is it possible to modify the text in the MessageBox class? There are a couple of buttons with a standard text. What i want is to set a text of my own. I have inherited the class, but...
4
by: Zeba | last post by:
Hi guys, I gave the following code in the page load function of one of my codebehind pages : if (!string.IsNullOrEmpty(keyword)) { System.Windows.Forms.MessageBox.Show("Got your keyword!!");...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.