messageBox in ASP pages

  • Thread starter Thread starter Oscar Sanchez
  • Start date Start date
O

Oscar Sanchez

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
 
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
 
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.
 
Back
Top