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

Home Posts Topics Members FAQ

custom html validation in VS2005

Hi,

the CMS out company wrote a few years ago, uses certain attrbutes not
included in any HTML validation known. Is there a way to add these custom
attributes to HTML validation within VS2005? I ask this to reduce the number
of errors I see without having to disable error trapping completely. I still
want to see all error, without the ones from our own CMS. Ill give a little
example. On a website we use the attribute pf_string="test" to let our CMS
know it has to replace the content within a tag with a translated version of
the text. When I open the page created with our CMS in VB2005 I get an error
for every pf_string it finds. When an entire page is filled with some 20 of
these attributes, I get 20 errors. Therefor I waste a lot of time just having
to read all of them and finding out where the list with real errors begin.
the full example is added at the end.

Is there a way to let VB2005 know to ignore these attributes (adding of
custom HTML validation rules would also be nice). This would help me a lot
when creating websites since our CMS doesn't have the full type ahead of
VB2005.
<div id="deliveryConditions" pf_string="delivery">here is some junk info</div>

when our CMS finds the pf_string attribute, it replaces all contents in the
DIV with the translated text which is retrieved from a DB. The language to be
used is retrieved another way not discussed here.
Oct 7 '08 #1
1 1059
you will have to build you own validation schema:

http://blogs.msdn.com/mikhailarkhipo...01/522614.aspx

-- bruce (sqlwork.com)

discipline4ever666 wrote:
Hi,

the CMS out company wrote a few years ago, uses certain attrbutes not
included in any HTML validation known. Is there a way to add these custom
attributes to HTML validation within VS2005? I ask this to reduce the number
of errors I see without having to disable error trapping completely. I still
want to see all error, without the ones from our own CMS. Ill give a little
example. On a website we use the attribute pf_string="test" to let our CMS
know it has to replace the content within a tag with a translated version of
the text. When I open the page created with our CMS in VB2005 I get an error
for every pf_string it finds. When an entire page is filled with some 20 of
these attributes, I get 20 errors. Therefor I waste a lot of time just having
to read all of them and finding out where the list with real errors begin.
the full example is added at the end.

Is there a way to let VB2005 know to ignore these attributes (adding of
custom HTML validation rules would also be nice). This would help me a lot
when creating websites since our CMS doesn't have the full type ahead of
VB2005.
<div id="deliveryConditions" pf_string="delivery">here is some junk info</div>

when our CMS finds the pf_string attribute, it replaces all contents in the
DIV with the translated text which is retrieved from a DB. The language to be
used is retrieved another way not discussed here.
Oct 8 '08 #2

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

Similar topics

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...
2
by: KarlCharlotteNc | last post by:
I have a custom server control that renders a Submit button. The button renders just fine at design and run time. The button click event is being trapped normally. My problem : If I add a...
9
by: wardy1975 | last post by:
Hi All, Looking for a little expert advice on a few web standards issues. I am currently trying to understand the impact of web standards for a web application I work with. I have been doing a...
14
by: Slim | last post by:
I cant seem to get my custom validation to work. can anyone spot where i have gone wrong control <asp:CustomValidator ID="checkHandicap" runat="server" ControlToValidate="startHandicap"...
3
by: Andy | last post by:
Hi folks, I have a customvalidator control that works properly if it isn't contained in an ASP:TABLE. But, when I place it inside an ASP:TABLE, I find that _ServerValidate doesn't get fired,...
0
by: rn5a | last post by:
A custom control is derived from the WebControl class & encapsulates a TextBox & a Button. When the Button is clicked, the user is shown the JavaScript confirm dialog with the 'OK' & 'Cancel'...
11
by: Pete Kane | last post by:
Hi All, does anyone know how to add TabPages of ones own classes at design time ? ideally when adding a new TabControl it would contain tab pages of my own classes, I know you can achieve this with...
2
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
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.