You CANNOT call a msgbox from ASP.<BR>ASP is a server side technology, use CLIENT side code to create an alert box OR a msgbox if you wish.<BR><BR>I never said you couldn't use vbscript, just that you can't use it server side.<BR><BR><BR>MikeD
Thanks. I have a list of events and the title of the event is a link. If there is online registration it will send them to the registration page but if not I want to pop a message box telling them that there is no online registration. (Not my choice of how to do it but...)<BR><BR>Here is the code:<BR><BR><% if strOnlineReg = "YES" and strEndRegDate >= Date then %><BR> <a href="register_events.asp?eid=<%= strEventID %>" class="nav"><%= strTitle %></a><BR> <% elseif strOnlineReg = "YES" and strEndRegDate <= Date then<BR> strAlert = MsgBox("You may no longer register for this event online", 0, "Sorry")<BR> end if %><BR><BR>I did not add the link for the message box because I am unsure of how to use this.