Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1414
  • Last Modified:

Trying to validate a asp page problem with <%

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
isnoend2001
Asked:
isnoend2001
  • 2
1 Solution
 
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
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
 
isnoend2001Author Commented:
Thanks I will remember that
0
 
isnoend2001Author Commented:
the validator like me now
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now