473,547 Members | 2,290 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Okay to Exclude both Name and ID?

I'm dynamically building an HTML <table> that has a bunch of rows - each of
which presents read-only data in DIVs.

Just wondering if it's okay to omit both the Name and Id attribute of the
DIV tags in the table - or if there is some good reason why I should go to
the effort to create a unique Name or Id value for each (which would also
increase processing time and render more verbose html). Given that I have no
client- nor server-side code that references the DIVs, I might as well keep
things simpler. But my concern is that there might be some "gotcha" lurking
if I do this... perhaps some browsers wouldn't like it... Any thoughts on
this?

Thanks.
Nov 18 '05 #1
2 1164
Good question, GMan,

The ID is used to get a handle on Controls that you need to work with. The
Name attribute is for the client. So, assuming that you don't need to
manipulate your Controls on either server or client-side, you would have no
other need for these properties to be set.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living

"Guadala Harry" <GM**@NoSpam.co m> wrote in message
news:u3******** ******@TK2MSFTN GP14.phx.gbl...
I'm dynamically building an HTML <table> that has a bunch of rows - each of which presents read-only data in DIVs.

Just wondering if it's okay to omit both the Name and Id attribute of the
DIV tags in the table - or if there is some good reason why I should go to
the effort to create a unique Name or Id value for each (which would also
increase processing time and render more verbose html). Given that I have no client- nor server-side code that references the DIVs, I might as well keep things simpler. But my concern is that there might be some "gotcha" lurking if I do this... perhaps some browsers wouldn't like it... Any thoughts on
this?

Thanks.

Nov 18 '05 #2
div's do not support a name attribute. the id attribute is optional, but if
used should be unique and follow the w3c naming conventions (asp.net breaks
this rule).

-- bruce (sqlwork.com)
"Guadala Harry" <GM**@NoSpam.co m> wrote in message
news:u3******** ******@TK2MSFTN GP14.phx.gbl...
I'm dynamically building an HTML <table> that has a bunch of rows - each of which presents read-only data in DIVs.

Just wondering if it's okay to omit both the Name and Id attribute of the
DIV tags in the table - or if there is some good reason why I should go to
the effort to create a unique Name or Id value for each (which would also
increase processing time and render more verbose html). Given that I have no client- nor server-side code that references the DIVs, I might as well keep things simpler. But my concern is that there might be some "gotcha" lurking if I do this... perhaps some browsers wouldn't like it... Any thoughts on
this?

Thanks.

Nov 18 '05 #3

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

Similar topics

11
3210
by: rbt | last post by:
Is there an easy way to exclude binary files (I'm working on Windows XP) from the file list returned by os.walk()? Also, when reading files and you're unsure as to whether or not they are ascii or binary, I've always thought it safer to 'rb' on the read, is this correct... and if so, what's the reasoning behind this? Again all of this...
15
17857
by: could ildg | last post by:
In re, the punctuation "^" can exclude a single character, but I want to exclude a whole word now. for example I have a string "hi, how are you. hello", I want to extract all the part before the world "hello", I can't use ".*" because "^" only exclude single char "h" or "e" or "l" or "o". Will somebody tell me how to do it? Thanks.
2
4422
by: Peter | last post by:
I have a site which uses forms authentication but I would like to exclude certain pages on the site from authentication. In other words I would like the user to be able to get to these pages without having to Log In. How do I change my web.config file to exclude certain files. <authentication mode = "Forms"> <forms name = ".ASPX"...
9
2907
by: paul.jameson | last post by:
I have a simple Access database that stores Karaoke Songlists for my local pub. From this you are able to print out the song lists they use. Up until now, any duplicate songs that appear on say, 2 CD's they own both appear on the songlist. What I would like to do is change the SQL source of the report to exclude these duplicates, but I'm...
2
1952
by: Arsen V. | last post by:
Hi, How to exclude the App_Data directory from Visual SourceSafe? It appears that Vs 2005 automatically adds the App_Data directory with the large binary MDF and LOG files to the Visual SourceSafe. Is there a way to prevent this from happening? Thanks,
4
8938
by: ninrulz | last post by:
I have been working on a database to perform some of the tasks that I have been doing manually in Excel. One of those tasks is to sort and exclude duplicate data. The fields are as follows Building Name or letter Floor MAC Channel SSID
9
2215
by: mjheitland | last post by:
Hello, when I use a property grid to display all properties of a control I want to exclude the control's name. (The name of my control shall not be altered) How do I exlude the name? Greetings, Michael Heitland
10
8503
by: Simon Brooke | last post by:
I'm struggling to understand what 'exclude-result-prefixes' does and is for; the language of the standard http://www.zvon.org/xxl/XSLTreference/W3C/xslt.html#literal-result-element is not exactly easy to follow. What I assumed it was supposed to do is mark specific prefixes as not to be printed in the generated document, but that does not...
3
1701
by: ITSimTech | last post by:
I'm trying to learn how/do two things here: 1) If the user searches for "Data" ($searchtext = "Data") the output should also include the fourth record because Field1 contains "all". 2) But the output of this same search should also exclude any records where Field1 contains "info" ($searchtext = "info"). You can see by the textsearch template...
0
7507
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...
0
7435
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7947
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...
1
7461
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...
0
7794
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...
1
5361
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5080
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...
0
3492
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...
0
747
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...

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.