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

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_rfvFirstName"
controltovalidate="ucClient_txtFirstName" errormessage="First Name"
display="None"
evaluationfunction="RequiredFieldValidatorEvaluate IsValid"
initialvalue="" style="color:Red;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 1208
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__ctl0_EmailValidator"
style="visibility: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_LeftDemo_RequiredFieldValidator"
style="visibility:hidden;"><font 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
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...
195
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...
17
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"...
3
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...
12
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...
14
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...
2
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...
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...
9
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...
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.