Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

is there anyway to have a msgbox in ASP page?

Status
Not open for further replies.

choohean

Technical User
Jan 15, 2002
57
MY
As I know that ASP page cannot call out a msgbox...
Is there any way to do this???
 
Since a message box is a client-side control, you would need to insert client script code into your ASP page. Try inserting the following code into an existing ASP page:

<input type='button' id='cmdShowMessage' value='Show Message'>

<script language='VBScript'>

Sub cmdShowMessage_OnClick()
Msgbox &quot;Button clicked&quot;
End Sub

</script>

Good luck.
Rich
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top