Kris
|
Posted: 01/27/2002, 6:11 PM |
|
I get a syntax error on the following tip (from Tips and Artciles).
Placing conditional "Access Denied" message on the Login screen
|
|
|
Nicole
|
Posted: 01/28/2002, 5:03 AM |
|
Kris,
provide more details. What line you have got the error message for? Post here the incorrect line as well.
|
|
|
Kris
|
Posted: 01/28/2002, 7:31 PM |
|
Nicole,
Here is the message I get....
Error Type:
Microsoft VBScript compilation (0x800A0409)
Unterminated string constant
/test/edvo/Login.asp, line 189, column 71
SetVar "access_message","<font face=""arial"" color=""red"" size=""2"">
----------------------------------------------------------------------^
Here is the actual code per article..
2. Click on Login form properties and in the "Header" section enter custom tag like this one:
{access_message}
3. Then go to Open Event for this form and enter this event:
if Session("UserID")<>"" then SetVar "access_message","<font face=""arial"" color=""red"" size=""2""><b>You don't have sufficient privileges to access this area.<br>Access Denied.</b></font>"
|
|
|
Inboy
|
Posted: 01/28/2002, 8:12 PM |
|
You're just missing a "
add one to the spot where it's giving you the error, and you should be fine.
|
|
|
|