473,385 Members | 1,465 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.

Validating invalid keywords

I'm using the following lines in my page.aspx code.

<a href="#"
ext:qtitle="Title of the info"
ext:qwidth='250'
ext:qtip="The info itself."
>Some text</a>
VS reports mucho erroro on this e.g.
"Unrecognized namespace 'ext'."
"Validation (XHTML 1.0 Transitional): Attribute 'qtitle' is not a valid
attribute of element 'a'."
and frankly, even if the application runs as it's supposed to, it's a
matter of principle and good coding not to generate such errors. How cani
"declare" those things so VS won't bark at them?

--
Regards
Konrad Viltersten
Jun 27 '08 #1
5 880
Hi

It's like for XML, then you can define your own namespace for whole page
(set of nodes)
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ext="http://mycontrolschemapath"
>
or for the control itself <a xmlns:ext="http://mycontrolschemapath href="#"
....

Regards, Alex
[TechBlog] http://devkids.blogspot.com

Jun 27 '08 #2
Just diable HTML validation in the Tools/Options

George

"K Viltersten" <tm**@viltersten.comwrote in message
news:op***************@lp028.pagero.local...
I'm using the following lines in my page.aspx code.

<a href="#"
ext:qtitle="Title of the info"
ext:qwidth='250'
ext:qtip="The info itself."
>Some text</a>
VS reports mucho erroro on this e.g.
"Unrecognized namespace 'ext'."
"Validation (XHTML 1.0 Transitional): Attribute 'qtitle' is not a valid
attribute of element 'a'."
and frankly, even if the application runs as it's supposed to, it's a
matter of principle and good coding not to generate such errors. How can i
"declare" those things so VS won't bark at them?

--
Regards
Konrad Viltersten
Jun 27 '08 #3
Den 2008-05-16 16:51:06 skrev George Ter-Saakov <gt****@cardone.com>:
Just diable HTML validation in the Tools/Options

George

"K Viltersten" <tm**@viltersten.comwrote in message
news:op***************@lp028.pagero.local...
I'm using the following lines in my page.aspx code.

<a href="#"
ext:qtitle="Title of the info"
ext:qwidth='250'
ext:qtip="The info itself."
>Some text</a>

VS reports mucho erroro on this e.g.
"Unrecognized namespace 'ext'."
"Validation (XHTML 1.0 Transitional): Attribute 'qtitle' is not a valid
attribute of element 'a'."
and frankly, even if the application runs as it's supposed to, it's a
matter of principle and good coding not to generate such errors. How can
i
"declare" those things so VS won't bark at them?
Thanks!

For some reason, i can only check/uncheck the "show errors" checkbox. The
more specific options are greyed out. Is it normal?

--
Regards
Konrad Viltersten
Jun 27 '08 #4
Yep, they come to live only if you enable "show errors", then you can
granulate what errors to show..

George.

"K Viltersten" <tm**@viltersten.comwrote in message
news:op***************@lp028.pagero.local...
Den 2008-05-16 16:51:06 skrev George Ter-Saakov <gt****@cardone.com>:
Just diable HTML validation in the Tools/Options

George

"K Viltersten" <tm**@viltersten.comwrote in message
news:op***************@lp028.pagero.local...
I'm using the following lines in my page.aspx code.

<a href="#"
ext:qtitle="Title of the info"
ext:qwidth='250'
ext:qtip="The info itself."
>Some text</a>

VS reports mucho erroro on this e.g.
"Unrecognized namespace 'ext'."
"Validation (XHTML 1.0 Transitional): Attribute 'qtitle' is not a valid
attribute of element 'a'."
and frankly, even if the application runs as it's supposed to, it's a
matter of principle and good coding not to generate such errors. How can
i
"declare" those things so VS won't bark at them?
Thanks!

For some reason, i can only check/uncheck the "show errors" checkbox. The
more specific options are greyed out. Is it normal?

--
Regards
Konrad Viltersten
Jun 27 '08 #5
Yep, they come to live only if you enable
"show errors", then you can granulate what
errors to show..
On my installation they're dead no matter if
"show errors" is checked or unchecked. Well,
it's not that big deal, really. Thanks!

--
Regards
Konrad Viltersten
--------------------------------
sleep - a substitute for coffee for the poor
ambition - lack of sense to be lazy

Jun 27 '08 #6

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

Similar topics

5
by: The Plankmeister | last post by:
Hi... What's the best method of validating input characters? I would like to prevent users submitting exotic characters (such as those acquired on Windows Systems by pressing ALT+) and thought...
6
by: mike | last post by:
Hello, After trying to validate this page for a couple of days now I was wondering if someone might be able to help me out. Below is a list of snippets where I am having the errors. 1. Line 334,...
1
by: Craig Beuker | last post by:
Hello, I am experimenting with this XmlValidatingReader and have a question about how it is working (or not working as would be the case) The sample documents and code are included at the end...
15
by: qazmlp | last post by:
What is the best & fastest way of validating an IPv4 address? Basically, the input can be either in IPAddressv4 or IPAddressv4:port format. Currently I have the following code to validate the...
4
by: Eric | last post by:
Is there a way to cancel the validating event on the closing event? I have 2 textboxes that I use the validating event to check for numeric data. If I try to close the form without putting a...
0
by: Gary Shell | last post by:
I am experiencing some strange behavior between a UserControl's validating event and a treeview control. Initially, I thought it was related to an issue in the Knowledgebase article 810852...
1
by: Chris Lieb | last post by:
I have an XML Schema file that I know is correct becuase I currently use it in a VB6 program to validate XML documents. Also, if I load an XML file into VS2005 that is not valid against this...
5
by: ameen.abdullah | last post by:
Hi Guys, I have a textbox in windows form that should only accept alphabets, numbers, spaces and underscore. If the textbox contains anyother character it should display a msg at the time of...
3
by: TheSteph | last post by:
Hi Experts ! I have a Winform Program in C# / .NET 2.0 I would like to ensure that a value in a TextBox is a valid Int32 when user get out of it (TextBox loose focus)
232
by: robert maas, see http://tinyurl.com/uh3t | last post by:
I'm working on examples of programming in several languages, all (except PHP) running under CGI so that I can show both the source files and the actually running of the examples online. The first...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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: 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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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.