Id attribute lengths

M

Mark

Hi everyone.

I am building large scale web applications for clients. I utilise
user controls heavily and sometimes find that because of my depth of
nesting (I have Panels containgin Lists containing Sub Lists
containing links etc etc you get the idea), the id's on the lower
elements are getting quite huge. I was just looking at a page where
some elements had id's counting 160 characters. This is no problem -
however, sometimes I have issues with page size and network speed in
more remote locations. I solve this kinds of issues by simply making
my id's shorter. However, everytime I do - I think of readability and
maintainability for later developers.

So, I'd be interested in anyone who has any other interesting ways of
shortening the length of these id's in their pages.

Because these id's are not generally used on the client (and even if
they are) there is no reason they couldn't be "translated" or even
"copressed" somehow... I haven't the time for this - but has anyone
ever messed around with something like this?

Cheers,
Mark
 
G

Guest

Hi everyone.

I am building large scale web applications for clients.  I utilise
user controls heavily and sometimes find that because of my depth of
nesting (I have Panels containgin Lists containing Sub Lists
containing links etc etc you get the idea), the id's on the lower
elements are getting quite huge.  I was just looking at a page where
some elements had id's counting 160 characters.  This is no problem -
however, sometimes I have issues with page size and network speed in
more remote locations.  I solve this kinds of issues by simply making
my id's shorter.  However, everytime I do - I think of readability and
maintainability for later developers.

So, I'd be interested in anyone who has any other interesting ways of
shortening the length of these id's in their pages.

Because these id's are not generally used on the client (and even if
they are) there is no reason they couldn't be "translated" or even
"copressed" somehow... I haven't the time for this - but has anyone
ever messed around with something like this?

Cheers,
Mark

Hi Mark

really good question. Take a look at the following post, it may give
you clues on how to workaround the problem
http://michaelcodes.net/post/ASPNET-WebControl-ClientID-Bloat.aspx
 
G

George

I think that will become a no problem if you turn on the compression on IIS.
Yes, page size will be still big, but what goes over the actual wires will
be much less. The Zip compressing repeated data very well.

George.


Hi everyone.

I am building large scale web applications for clients. I utilise
user controls heavily and sometimes find that because of my depth of
nesting (I have Panels containgin Lists containing Sub Lists
containing links etc etc you get the idea), the id's on the lower
elements are getting quite huge. I was just looking at a page where
some elements had id's counting 160 characters. This is no problem -
however, sometimes I have issues with page size and network speed in
more remote locations. I solve this kinds of issues by simply making
my id's shorter. However, everytime I do - I think of readability and
maintainability for later developers.

So, I'd be interested in anyone who has any other interesting ways of
shortening the length of these id's in their pages.

Because these id's are not generally used on the client (and even if
they are) there is no reason they couldn't be "translated" or even
"copressed" somehow... I haven't the time for this - but has anyone
ever messed around with something like this?

Cheers,
Mark

Hi Mark

really good question. Take a look at the following post, it may give
you clues on how to workaround the problem
http://michaelcodes.net/post/ASPNET-WebControl-ClientID-Bloat.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,156
Messages
2,570,878
Members
47,408
Latest member
AlenaRay88

Latest Threads

Top