Solved

Trying to validate a asp page problem with <%

Posted on 2013-06-26
3
1,190 Views
Last Modified: 2013-06-26
I am trying to validate and asp page with W3C
I have this:
The script:
<% dim Name
dim email
dim comment
%>

<% Name = request("name")
email = request("email")
comment = request("comment")
%>
I get these errors:
 Bad character % after <. Probable cause: Unescaped <. Try escaping it as &lt;.

<% dim Name
and this

Error Line 36, Column 2: Bad character % after <. Probable cause: Unescaped <. Try escaping it as &lt;.

What is wrong ?
0
Comment
Question by:isnoend2001
  • 2
3 Comments
 
LVL 52

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
ID: 39280292
When you are trying to validate the page, you have to validate the rendered html, not your asp/vb server side code.

Either upload your page to your server and enter the url of the page, or view source and copy then paste to the 3rd tab where you can paste your rendered html.
0
 

Author Closing Comment

by:isnoend2001
ID: 39280298
Thanks I will remember that
0
 

Author Comment

by:isnoend2001
ID: 39280310
the validator like me now
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VBS file using code from 2nd file (txt or vbs) 4 31
Messed up my code 6 34
asp syntax 3 37
How to alternate between 2 messages until page closes in Classic ASP 8 26
In this article you will learn how to create a free basic website on Bitbucket, a git service provider. Polymer creates dynamic HTML components, which allow more flexibility than static HTML. This tutorial uses Ubuntu Linux but can also be done on W…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now