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!

MsgBox error

Status
Not open for further replies.

david7777777777

Programmer
Sep 26, 2001
417
US
When I try to get a message box to show up when a button is clicked on my ASP page,

Sub btnUpdate_onclick()
rsEditEmployees.updateRecord
msgbox "Record was successfully updated.", vbYesNoCancel
End Sub

my trace shows this error:

Microsoft VBScript runtime error '800a0046'

Permission denied: 'msgbox'

/edit_employees.asp, line 27

Any clues as to where to look to fix this?
 
The code is being executed on the server. Not much point in a message box showing there!

Either set a variable (or a lable value), which you can use in the page with <%=m_strMessage%>

or trap the onclick BEFORE it is sent to the server using the thisPage_onbeforeserverevent.

Check out thread117-56592 for a discussion on this. (Content Management)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top