473,324 Members | 2,179 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

How do I validate asp

Hi,
I have an asp file with css file.
I would like to validate my asp file (to make sure I don't have open
divs without </div>, etc...).
Since it's a big file, I am searching for an automatic tool to validate
the asp, not only the css.
Where can I find such tool?

Thanks, Gabi.

Jul 28 '06 #1
6 1368
Gabriella wrote:
I have an asp file with css file.
I would like to validate my asp file (to make sure I don't have open
divs without </div>, etc...).
You cannot validate ASP. You can only run the ASP to generate output, which
sounds like HTML given the context (ciwa.stylesheets isn't really the place
for this) and validate that.

You could write program code (in the programming language of your choice)
that would give the ASP different input so as to produce different sets of
output and then send that output to a validator.

But there isn't any software out there (as far as I know) which will read
your ASP and work out all possible output to find syntax errors in that
output.

--
David Dorward <http://blog.dorward.me.uk/ <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 28 '06 #2
David Dorward wrote:
Gabriella wrote:
>I have an asp file with css file. I would like to validate my asp
file (to make sure I don't have open divs without </div>, etc...).

You cannot validate ASP. You can only run the ASP to generate output,
which sounds like HTML given the context (ciwa.stylesheets isn't
really the place for this) and validate that.

You could write program code (in the programming language of your
choice) that would give the ASP different input so as to produce
different sets of output and then send that output to a validator.

But there isn't any software out there (as far as I know) which will
read your ASP and work out all possible output to find syntax errors
in that output.
It's impossible (isn't it?) I mean, I suppose that some ASP pages might
contain code for which the number of possible HTML outcomes was
deterministic - but in the general case, any given ASP page could have
an infinite variety of different outcomes.

From an ASP page it's possible to call library code; so even an ASP
parser couldn't predict how the page might execute, except in a limited
range of cases.

Therefore it's theoretically impossible to predict whether an arbitrary
ASP page will always, sometimes or never produce valid HTML. Only a warm
geek can do that.

Of course, if the ASP were produced in accordance with some specified
scheme, and were restricted to some set of known libraries, then it
could in theory be be validated.

--
Jack.
http://www.jackpot.uk.net/
Jul 28 '06 #3
Jack wrote:
David Dorward wrote:
>Gabriella wrote:
>>I have an asp file with css file. I would like to validate my asp
file (to make sure I don't have open divs without </div>, etc...).

You cannot validate ASP. You can only run the ASP to generate output,
which sounds like HTML given the context (ciwa.stylesheets isn't
really the place for this) and validate that.

You could write program code (in the programming language of your
choice) that would give the ASP different input so as to produce
different sets of output and then send that output to a validator.

But there isn't any software out there (as far as I know) which will
read your ASP and work out all possible output to find syntax errors
in that output.
It's impossible (isn't it?) I mean, I suppose that some ASP pages might
contain code for which the number of possible HTML outcomes was
deterministic - but in the general case, any given ASP page could have
an infinite variety of different outcomes.
Sure. What would a validator do with:
<%
dim x
x = "div"
%>
<div><<%=x%>></div>
What if the value of x were chosen at random from an array of several
tag names?
Jul 28 '06 #4
On Friday 28 July 2006 17:16, Gabriella [fr********@yahoo.com] wrote in
message <11**********************@i42g2000cwa.googlegroups .com>
Hi,
I have an asp file with css file.
I would like to validate my asp file (to make sure I don't have open
divs without </div>, etc...).
Since it's a big file, I am searching for an automatic tool to validate
the asp, not only the css.
Where can I find such tool?
Does this help?

http://validator.w3.org/docs/help.html#manual

"If, for some reason, you prefer running your own instance of the Markup
Validator, check out our developer's documentation."
http://validator.w3.org/docs/devel.html
Jul 28 '06 #5
Gabriella wrote:
I have an asp file with css file.
I would like to validate my asp file (to make sure I don't have open
divs without </div>, etc...).
View the page in a (non-IE) browser. Save the page as some HTML file.
Validate that file.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jul 28 '06 #6
Gabriella wrote:
>I have an asp file with css file.
I would like to validate my asp file (to make sure I don't have open
divs without </div>, etc...).
Jim Moe <jm***************@sohnen-moe.comwrote:
View the page in a (non-IE) browser. Save the page as some HTML file.
Validate that file.
With Opera, you can view the page and hit Ctrl-Alt-V to send it to the
validator.
--
Darin McGrew, mc****@stanfordalumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp.com, http://www.HTMLHelp.com/

"Adventure is nothing but a romantic name for trouble." - Louis L'Amour
Jul 28 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: SHC | last post by:
Hi all, I have a VC++ .NET 2003 - Windows XP Pro PC. I created a Win32 console application in my VC++ .NET 2003 and copied validateDOM.cpp, books.xml and books.xsd (see the attached files below)...
5
by: Jim Heavey | last post by:
When should you use the Page.Validate() method? I thought you would use this method if you have some Server side validation (CustomControl's) you wanted to use and this would cause them to be...
11
by: jjbutera | last post by:
I know how to use the ErrorProvider in my winforms..or do I? I validate the values and set the ErrorProvider in the validating event. If not valid, I set e.Cancel = True. I clear the ErrorProvider...
0
by: Marc Scheuner | last post by:
Folks, I'm faced with a dilemma here - I have an XML document and for part of it, I have an XSD schema to validate it - but not for the rest of it. Can I still validate at least part of the...
4
by: Brybot | last post by:
I have a form that i've split up into multiple asp:panels, each panel has a number of validators which work correctly. At on the last panel, i want to commit the data collected to a database. I...
24
by: Mike Hofer | last post by:
Please forgive the cross-post to multiple forums. I did it intentionally, but I *think* it was appropriate given the nature of my question. I'm working on an open source code library to help...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.