View Full Version : Msgbox in ASP
Neha Shah
09-09-2008, 09:20 AM
hi
How to display a message box in ASP?
Thank you in advance.
brazenskies
09-09-2008, 09:28 AM
use javascript
Neha Shah
09-09-2008, 10:48 AM
I m executing my code on server side.
I have tried javascript & VB.
but it is not giving me popup output.
brazenskies
09-09-2008, 11:22 AM
you can't create message boxes using purely asp. You would need to populate the text of the javascript box using asp.
<script type="text/javascript">
alert("<%YOUR DYNAMIC MESSAGE HERE%>");
</script>
Alternatively if you can't use javascript you could create a css div that would appear, but it would involve reloading the page
Bullschmidt
09-16-2008, 12:25 AM
And perhaps try something like this "Yet to be developed" JavaScript alert box:
Response.Write "<script type='text/javascript'>alert('Yet to be developed.');</script>"
Or using a variable:
MyVariable = "Yet to be developed."
Response.Write "<script type='text/javascript'>alert('" & MyVariable & "');</script>"
Or with multiple lines:
Response.Write "<script type='text/javascript'>alert('Coming soon.\nYet to be developed.');</script>"
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.