messagebox inside ASP page

O

Oscar Sanchez

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

thanks for your help

Oscar
 
B

Bob Barrows

Oscar said:
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
....
 
R

Ray at home

response.write "<script language=""javascript"">alert('hey');</script>"

Ray at home
 
M

MSFT

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

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

Members online

Forum statistics

Threads
474,095
Messages
2,570,616
Members
47,232
Latest member
helpplease!

Latest Threads

Top