473,508 Members | 2,079 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

messagebox inside ASP page

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 19 '05 #1
4 31886
Oscar Sanchez wrote:
How can I send messages to user like messageBox from a
ASP page without doing postback over the page.

a) Use Response.Write
b) do something like this:
<%
....
If messageneeded then %>
msgbox "message"
<%end if
....
Jul 19 '05 #2
no such thing in ASP. Use clientside code

--
----------------------------------------------------------
Curt Christianson (Software_AT_Darkfalz.Com)
Owner/Lead Designer, DF-Software
http://www.Darkfalz.com
---------------------------------------------------------
...Offering free scripts & code snippits for everyone...
---------------------------------------------------------
"Oscar Sanchez" <or**@msg.com> wrote in message
news:04****************************@phx.gbl...
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 19 '05 #3
response.write "<script language=""javascript"">alert('hey');</script>"

Ray at home

"Oscar Sanchez" <or**@msg.com> wrote in message
news:04****************************@phx.gbl...
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 19 '05 #4
Hi Oscar,

You may use some client script to achieve this, for example:

<%@ Language=VBScript %>
<html>
<head>
<title>Test Page</title>

<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>

function button1_onclick() {

alert("hello world");
}
</SCRIPT>
</head>
<body ><INPUT id=button1 type=button value=Button name=button1
LANGUAGE=javascript onclick="return button1_onclick()">

</body>
</html>
Hope this answer your question.

Luke
Microsoft Online Partner Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Jul 19 '05 #5

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

Similar topics

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; ...
2
6239
by: Matthew Louden | last post by:
how to show the message box in ASP.NET? I try MessageBox.Show, but not work.
5
1542
by: Curt Emich | last post by:
I always thought writing a simple diagnostic message in a message box would be pretty simple. Not in .NET. First, I wrote this amazingly complex piece of code: MessageBox.Show("yer mama") ...
10
2324
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...
10
5997
by: Andrew | last post by:
Hi, I have a messagebox that pops up due to an event. I did it in javascript. ie. alert("Time's up. Assessment Ended"); I want to capture the OK and Cancel events of this alert messagebox. My...
7
16821
by: generallee5686 | last post by:
Just a quick question, im just taking a C# class. Is there a way to have a variable inside a text string like: Console.Write("Answer: {0}",answer); But instead do it inside of a...
3
6487
by: VMI | last post by:
I know this isn't the best group to post aspnet question, but the MS asp.net NG hasn't been very helpful lately. I've been trying to add a messagebox following the examples I've seen on the web,...
3
4030
by: Luis Alvarado | last post by:
Hello everybody, I am new programming in asp.net, recently I have been hired in a company and they were creating a simple application, this application is developed in asp.net 2 visual Studio 2005...
3
2532
by: robiman | last post by:
Hi, I'm running an external program using System.Diagnostics Process. This program creates a PDF file from a CAD file via commandline "me10f.exe - p filename.mi". But in case of errors the...
0
7125
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...
0
7328
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,...
1
7049
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
7499
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
5631
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,...
1
5055
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...
0
4709
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...
0
3199
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
422
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.