473,322 Members | 1,719 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,322 software developers and data experts.

Could not find any attribute 'class' of element 'td'.

Hello

I am trying to convert a web site from ASP to ASP.NET and the class
attribute is used in tables throughout the site. The problem is when I
am trying to convert these pages I have a huge list of what appears to
be errors with the message "Could not find any attribute 'class' of
element 'td'", is there any way of stopping this error from occurring,
ie can I update the schema to allow the class attribute in a td element?

Example HTML:
<td class="popRed">
<b>Latest Developments:</b>
</td>

Thanks

PD

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #1
2 3146
I guess this is probably a big job but have you considered converting your
tables to server-side controls? The client-side controls have a few gaps in
the schema...

"Paul Darroch" <po******@sweeney-kincaid.co.uk> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
Hello

I am trying to convert a web site from ASP to ASP.NET and the class
attribute is used in tables throughout the site. The problem is when I
am trying to convert these pages I have a huge list of what appears to
be errors with the message "Could not find any attribute 'class' of
element 'td'", is there any way of stopping this error from occurring,
ie can I update the schema to allow the class attribute in a td element?

Example HTML:
<td class="popRed">
<b>Latest Developments:</b>
</td>

Thanks

PD

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #2
I don't believe having a class attribute on a td element would cause that
error. In fact, since when is a class attribute not allow on a td element??

Actually, you can apply any attribute you can dream up to an element. VS
may put the red squiggle line under it, but it won't cause the error your
seeing or prevent your code from running. You sure you have a well-formed
document? No mismatched tags?

Greg
"Paul Darroch" <po******@sweeney-kincaid.co.uk> wrote in message
news:uI**************@TK2MSFTNGP12.phx.gbl...
Hi

It is my every intention to rewrite the site, employing "proper" ASP.NEt
code and approaches; however, I need a quick way to migrate the existing
code to valid ASP.Net so that I can share session data, etc and so allow
me to rewrite the site in "proper" ASP.Net. It is for this reason that I
am looking to stop these errors, as I simply don't care whether or not a
td element should or should not contain a class attribute! Is there any
way of stopping these errors from occurring?

What did you mean by "The client-side controls have a few gaps in the
schema..."? Does this mean I can alter the schema used to determine what
elements can contain what attributes, etc?

Thanks

PD

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #3

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

Similar topics

0
by: Carl | last post by:
I want to create a generic xslt that would take xml input like: ########################################################################## <?xml version="1.0" encoding="utf-8" ?>...
1
by: j erickson | last post by:
with the following xsl and xml file, the display of the gif file with the <image/url> tag works. However, the gif file in the <description> tag using the name attribute "src" won't make the correct...
2
by: D. Alvarado | last post by:
Hello, I am outputting HTML from an XSLT and I am having trouble setting the value of a form-action field based on certain conditions. Here is the non-working code: <xsl:template...
2
by: thomasamillergoogle | last post by:
Hi, As you can see from the code below I have a simple js function called getFormElementsinTableRow(rowName). rowName is the ID of the tableRow. I just want to use js to find the child ID's of all...
33
by: bissatch | last post by:
Hi, I fully understand the purpose of an alt attribute within a <img> tag but why would you use a title or summary attribute within, for example, a <p> tag. I have read books recommending that I...
0
by: Derek | last post by:
I am creating an intranet using Visual Web Developer Express Edition. Everything has been working OK until yesterday when I started getting 62 messages all beginning "Could not find schema...
3
by: mslyman | last post by:
Hi, I could do with some help. I have this XML. <region> <region_code>567</region_code> <store> <store_code>345</store_code> <dept> <dept_code>32</dept_code> </dept>
2
by: mlb5000 | last post by:
I seem to be having issues validating an XML document using my schema. Both are below: The Schema: <?xml version="1.0" encoding="UTF-8"?> <xs:schema...
0
by: pradip sonar | last post by:
Hello, I am having a problem with Xalan transforming a document containing Japanese characters. (An initial note: the problem does not occur on my Windows development machine, only on the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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...
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: 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: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.