469,312 Members | 2,524 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,312 developers. It's quick & easy.

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 31747
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by alex_f_il | last post: by
2 posts views Thread by Matthew Louden | last post: by
5 posts views Thread by Curt Emich | last post: by
10 posts views Thread by Russ | last post: by
10 posts views Thread by Andrew | last post: by
7 posts views Thread by generallee5686 | last post: by
3 posts views Thread by VMI | last post: by
3 posts views Thread by Luis Alvarado | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.