473,734 Members | 2,211 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP.NET v1.1, Validator Controls, Web Standards and Valid (X)HTML

I am attempting to create a web site using ASP.NET v1.1 to comply with
the W3C's WAI Triple-A standard.

To this end I need ASP.NET to emit valid HTML 4.01 Transitional (once
confident with ASP.NET and HTML 4.01 I plan to move onto XHTML).

I have found several articles suggesting the use of Response Filters to
amend the HTML on route to the client which are very usefull for adding
a container for the ViewState and removing the Form's name attribute.

My problem is that when using Validator Controls to perform Client (and
Server Side) validation, for the Validators to work client side, they
must be accompanied by a hidden HTML span with multiple attributes.

E.g. <span id="ucClient_rf vFirstName"
controltovalida te="ucClient_tx tFirstName" errormessage="F irst Name"
display="None"
evaluationfunct ion="RequiredFi eldValidatorEva luateIsValid"
initialvalue="" style="color:Re d;display:none; "></span>

These additional attributes cause the markup to fail validation as they
are not part of the HTML 4.01 Transitional DTD.

Can anybody tell me how to make an ASP.NET page that uses Validator
Controls validate against the HTML 4.01 DTD?

Will I, as I currently fear, have to resort to Server Side validation
only?

Dec 14 '05 #1
3 1228
Could you look at this page from Opera or FireFox?

http://www.validatorcontrol.softain.com/Download.aspx

The page uses stardard validators for the email and password. The result
span is "<span id="Download__c tl0_EmailValida tor"
style="visibili ty:hidden;">", without additional info. But the developers
changes standard validators for non-IE browsers only. You can try to repeat
their functionality or buy the source and change it to working with IE.
Dec 14 '05 #2
Could you look at this page from Opera or FireFox?

http://www.validatorcontrol.softain.com/Demo.aspx

The page uses stardard validators. The result spans (for example,
<span id="Demo_LeftDe mo_RequiredFiel dValidator"
style="visibili ty:hidden;"><fo nt color="Yellow"> *</font></span>

) do not contain additional info. But the developers changes the validators
for non-IE browsers only. You can try to repeat their functionality or buy
the source and change it to working with IE.

Dec 14 '05 #3
Thanks Sergey, that looks very promissing.

Dec 14 '05 #4

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

Similar topics

24
3149
by: Nick Kew | last post by:
There's a new beta of the W3C Markup Validation Service now live at <URL:http://validator.w3.org:8001/> Probably the most important change is verbose output, including attempts to explain the validator errors. Other changes include improved display of error messages, and a choice of parse modes. Currently - but probably not for long - it includes an "interesting" default setting! Some of the changes have been the subject of much...
195
8587
by: Torbjørn Pettersen | last post by:
As you might have noticed I'm trying to clean up my web site's HTML code. The way I do it is simply more or less redoing to complete site, testing it on a web server I have set up on my local network. I have downloaded, and installed CSE HTML Validator Pro, but I don't get the same results with that as I do with the online validator on W3.org. And I can't upload files to W3.org either, due to all the ASP code I use.
17
4003
by: Colin Cogle | last post by:
------- Line 47, column 8: there is no attribute "id" <DIV id="LeftNavigation" style="position:absolute; left:8px; top:6px; width:200p ------- Line 47, column 31: there is no attribute "style" <DIV id="LeftNavigation" style="position:absolute; left:8px; top:6px; width:200p ------- Line 47, column 127: element "DIV" undefined
3
5044
by: Neal | last post by:
I've just started a book course"HTML, Complete Course" from Seybold. It has a confidence builder section which I did and it worked fine. But the actual tutorial section at the beginning of the course is the problem. Ive typed in the code and it comes up in the browser, but when I tery to validate it, it fails on ..... Sorry, this type of URL scheme (file) is not supported by this service. Please check that you entered the URL correctly. ...
12
45330
by: thomas_jedenfelt_1 | last post by:
Hi everyone, Is the W3C HTML Validator in error when it returns <br /> as valid for HTML 4.01 Strict doctype? In March 2004 , the Validator returned <br />, <hr /> and <img /> as invalid for HTML 4.01 Strict. Liam Quinn said "You can't mix HTML and XHTML. You need to choose one or the other syntax."
14
2441
by: Greg Heilers | last post by:
Greetings, It is wonderful to find such a useful group. This is my first time here, so I apologize up front, if this question has been asked (and answered) a thousand times before. While validating my code with the W3C Validator, I pass (get "The Green") while my files reside on my local computer. However, once I upload them to the host (Yahoo Webhostings...the paid version, *not* Geocities), I get error messages (and a "Fail"), due...
2
3920
by: Pham Nguyen | last post by:
Has anyone seen an example of a textbox server control that has built-in client-side validation? I'd like to build a server control that extends the System.Web.UI.WebControls.TextBox class to allow javascript checks for things like valid e-mail addresses or phone numbers (without having to add a separate control for validation). One idea I did some work on was having the control implement the IValidator interface and basically recreating...
40
5604
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 HTML page: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN" "http://www.w3.org/TR/html401/strict.dtd"> <html> <head>
9
3606
by: Daniele Perilli | last post by:
Hi everybody, I'd like to introduce you a new little tool I developed to automatically check markup validation of all pages in given websites. It uses W3C HTML Validator and CSS Validator online services in recursive mode (without any max pages limit as other known services). It's called Markup Validator and, of course, it's completely free. I'd be delighted to have a feedback from you about it: http://www.markupvalidator.com Thanks.
0
8946
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9310
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9236
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9182
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6031
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4809
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2724
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2180
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.