Id attribute lengths

  • Thread starter Thread starter Mark
  • Start date Start date
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
 
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
 
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
 
Back
Top