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

<span> attributes

Hi,

I noticed that client-side validation (in IE6) is done with <span>
tags that have the same attributes as in original aspx code
(controlToValidate and others...). I noticed that, when i save
generated html as a new document with html extension and open it in
Visual Studio.NET, the same VS.NET that created them doesn't
recognised those span atributtes (ie.5 shema is used) and marks them
with underline!
How is it possible that VS.NET doesn't recognize its own creation?

Also, i couldn't find any javascript that actually makes validator's
text visible on submit.
Is it done by some javascript code that is inserted in page with some
included .js file or is this functionality included in <span> tag?

Thanks, Ante
Nov 17 '05 #1
2 2672
an**********@vip.hr (Ante Perkovic) wrote in
news:f7**************************@posting.google.c om:
Hi,

I noticed that client-side validation (in IE6) is done with
<span> tags that have the same attributes as in original aspx
code (controlToValidate and others...). I noticed that, when i
save generated html as a new document with html extension and
open it in Visual Studio.NET, the same VS.NET that created them
doesn't recognised those span atributtes (ie.5 shema is used)
and marks them with underline!
How is it possible that VS.NET doesn't recognize its own
creation?
Ante,

controlToValidate is not a standard attribute of the <SPAN> tag. A
browser will ignore any invalid HTML it sees. VS.NET doesn't know
that the controlToValidate attribute was added to the <SPAN> tag by
an ASP.NET validator, so it sees controlToValidate as invalid and
underlines it.
Also, i couldn't find any javascript that actually makes
validator's text visible on submit.
Is it done by some javascript code that is inserted in page with
some included .js file or is this functionality included in
<span> tag?


ASP.NET pages include a JavaScript file located on the server at:

C:\Inetpub\wwwroot\aspnet_client\system_web\1_1_43 22

The script's name is WebUIValidation.js. Code in the script
shows/hides the error text from a validator by setting the <SPAN>
tag's style.display property:

http://msdn.microsoft.com/workshop/a...ce/properties/
display.asp
Hope this helps.

Chris.
-------------
C.R. Timmons Consulting, Inc.
http://www.crtimmonsinc.com/
Nov 17 '05 #2
..Net uses HTML and .Net syntax standards. These extended attributes are not
really part of either world.

..Net uses the fact that you can define your own attributes. The development
environment may underline the "offending" attribute, but you can still use
them.

Check out <Center>...</center> same thing - it doesn't "like" it, but you
can use it. Think of it as a little warning, not as an error.
"Ante Perkovic" <an**********@vip.hr> wrote in message
news:f7**************************@posting.google.c om...
Hi,

I noticed that client-side validation (in IE6) is done with <span>
tags that have the same attributes as in original aspx code
(controlToValidate and others...). I noticed that, when i save
generated html as a new document with html extension and open it in
Visual Studio.NET, the same VS.NET that created them doesn't
recognised those span atributtes (ie.5 shema is used) and marks them
with underline!
How is it possible that VS.NET doesn't recognize its own creation?

Also, i couldn't find any javascript that actually makes validator's
text visible on submit.
Is it done by some javascript code that is inserted in page with some
included .js file or is this functionality included in <span> tag?

Thanks, Ante

Nov 17 '05 #3

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

Similar topics

3
by: Alexander Ross | last post by:
I have an html snippet, and I want to remove any <span> tags that have a specific attribute (class=none) ex. The quick brown <span class="animal">fox</span> jumped <span...
13
by: Mikko Ohtamaa | last post by:
From XML specification: The representation of an empty element is either a start-tag immediately followed by an end-tag, or an empty-element tag. (This means that <foo></foo> is equal to...
3
by: Andrew Tang | last post by:
Hi. I'm having problems with the following code. The last line seems to be in the wrong place, its been moved down slightly by about 3 pixels in IE6. <html> <head> <title>Lorem Ipsum</title>...
18
by: Timothy Casey | last post by:
Thanks in advance... =~= Timothy Casey South Australia worloq@iprimus.com.au Formerly: casey@smart.net.au
9
by: Wang, Jay | last post by:
Hello, all, I would like to enable some text between <SPAN url="http://www.testserver.com/">WORD TO BE DRAGGED </SPAN>. I put some javascript and it will extract http://www.testserver.com/ from...
0
by: Darren Li | last post by:
Hi, I use .net Label web control in my web app., which will generate <Span> tag WITH style attributes (width;height) on client side browser. I have 2 questions: 1. If the client side browser...
1
by: Fao, Sean | last post by:
I'm trying to set the title attribute on a CheckBox and I'm having some issues in ASP.NET 1.1. The title attribute in the following example is valid in HTML 4.01 Transitional: <input...
2
by: xhe | last post by:
I met a very headache problem in javascript, I think this might be difference between IE and NS / Safari. I have a text area <form> <textarea name='tex1' onkeyup='displayit();'></textarea>...
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: 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
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...
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...

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.