hi is ther ani codes for creating message box using asp..i have search a few website but i m unable to find it.. realli thx a lot if anione is able to sent coding or websites teaches on creating a pop up msg box.
Well ASP is a pure server side thing and u can not use ASP for showing message boxes at the client side... but still we can use some alternate to do the same which apparently seems to b like msgboxes...
i have done the same in one of my web pages.
see the following code:-
//-----------------------------------------------------
<HTML>
<HEAD>
<script>
<!--
function ShowModelWindow()
{
window.showModalDialog("ShowRemarks.asp","dialogWidth:200,dialogHeight:200"
}
function ShowRemarks()
{
window.open("ShowRemarks.asp","NewWin","menubar=no,toolbar=no,status=no,width=325,height=200"
}
//-->
</script>
</head>
<BODY>
<BASE target="RightPane" >
<BODY link="#FFFFFF" Bgcolor="#F8C476" Text=White alink=#FFFFFF vlink=#FFFFFF Onload="ShowRemarks();">
//--------------------------------------------------------
actually i have used javascript function ShowRemarks()
to open a new window apart from the original window and in that window an asp page is opened.... this is something which is done using window.
see there is one more javascript function ShowModelWindow() which shows a model window(i hope u know the differnce between model and modeless windoe) ..
this will show a message box , then one of the other two depending upon which button is cancelled.
<script Language=VBScript>
if msgbox("Testing 1 2 3",vbOKCancel) = vbCancel then
msgbox "Cancelled"
else
msgbox "Not Cancelled"
end if
</script>
the first example was server side, the vbscript example is client side. I have done this with VBscript many times, but it seems to only run as client side, like the example above, not while embeded in the serverside code.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.