CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Syntax error on one of the Tips and Atricles item

Print topic Send  topic

Author Message
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.

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.