473,473 Members | 1,838 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

asp.net creates html that does not validate?


how can i enforce compliancy on the code that asp.net generates. the ids are
generated by asp.net
http://validator.w3.org/check?uri=ht...TORSearch.aspx

ex:
1.. Line 107, column 19: value of attribute "ID" invalid
<span id="_ctl0_lblRealtorSearch">REALTOR Search</span>
^2.. Line 112, column 19: value of attribute "ID"
invalid
<span id="_ctl0_lblLastName">Last Name:</span>
3.. thanks
stephane
Nov 18 '05 #1
3 1139
there is no easy way, as MS would have to change their code. you can avoid
controls in controls, or write modules that modify the ids.

-- bruce (sqlqwork.com)

"sviau" <sv***@crea.ca> wrote in message
news:u2**************@TK2MSFTNGP11.phx.gbl...

how can i enforce compliancy on the code that asp.net generates. the ids are generated by asp.net
http://validator.w3.org/check?uri=ht...ALTORSearch.as
px
ex:
1.. Line 107, column 19: value of attribute "ID" invalid
<span id="_ctl0_lblRealtorSearch">REALTOR Search</span>
^2.. Line 112, column 19: value of attribute "ID"
invalid
<span id="_ctl0_lblLastName">Last Name:</span>
3.. thanks
stephane

Nov 18 '05 #2
Hi Stephane,
Thanks for posting in the community!
From your description, you found that the html source generate by the
ASP.NET web server control are not completely
validating according to the W3C's markup validating service. Also, you're
wondering some approaches to manually adjust it, yes?
If there is anything I misunderstood, please feel free to let me know.

I've tested throught the validating service's link you provided. Yes, there
does exists some certain issues with the html source generated by the
ASP.NET web server controls. As for how to manually adjust this, I think
here is some possible approachs:
1. Create some custom controls derived from the buildin web server controls
and manually adjust the rendered output html then output as the custom
control's output. However, this will cause a large amount of works , do you
think so?

2. Since the Asp.net server controls suffer this problem, have you tried
using the HtmlControls? Since the html controls are just html elment based
and you can adjust the their source in the page's html source and the final
output won't be changed a lot from the static html.

In addtion, I think the XHTML controls Ken Cox has provided maybe also
helpful to you.
http://www.asp.net/ControlGallery/Co...868&tabindex=2

Please check out the suggestions. If you have any further problems or need
any assistance, please feel free to post here.
Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #3
Hi Stephane,
Have you had a chance to check out the suggestions in my last reply or have
you got any further ideas on this issue? If you need any assistance, please
feel free to post here.
Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #4

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

Similar topics

6
by: deko | last post by:
I have a basic Feedback form - I want to prevent blank entries. The problem with the below code is that the form still Posts if the 'message' field is blank. The form will not post if the...
3
by: Megha Vishwanath | last post by:
Hi, I have a struts form <html:form> in which although the focus rests on the submit button, hitting the enter key does not submit the form. I tried capturing the Enter key event and followed...
54
by: Howard Kaikow | last post by:
Where is the official documentation of what constitutes a minimally compliant HTML file? -- http://www.standards.com/; See Howard Kaikow's web site.
2
by: Nick Gilbert | last post by:
Hi I have a number of pages where it is valid for the user to enter HTML. On these pages, I have turned off RequestValidation ("ValidateRequest = false" in the page directive) so that the...
8
by: goldtech | last post by:
Newbie esp about html validation - seems like something to strive for. Yet many pages even "enterprise" corporate type pages do not validate, yet seem to display well on most browsers. Two...
40
by: VK | last post by:
Hi, After the response on my request from W3C I'm still unclear about Tidy vs. Validator discrepansies. That started with <IFRAME> issue, but there is more as I know. Anyway, this very basic...
21
by: Russell Hoover | last post by:
I want to make sure that no border (around a specific small "blog-button" image) ever appears in FF or IE, or any other browswer. I couldn't seem do it with xhtml, so I reverted to border="0" ...
26
by: webrod | last post by:
Hi, I have some php pages with a lot of HTML code. I am looking for a HTML validator tool (like TIDY). TIDY is not good enough with PHP tags (it removes a lot of php code). Do you have any...
0
by: Lars Eighner | last post by:
In our last episode, <004f629c$0$10265$c3e8da3@news.astraweb.com>, the lovely and talented mark4asp broadcast on comp.infosystems.www.authoring.html: I have not done this, not even on...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.