Client Id generation problems

  • Thread starter Thread starter jw56578
  • Start date Start date
J

jw56578

I have a reapeater where each repeater item contains several table
rows. The table rows, in turn, contain several child objects. when
everthing is rendered, the client ids are constructed as such

repeatername_repeateritemname_tablerowname
repeatername_repeateritemname_rowchildobjectname


why does asp.net not construct the client ids as follows:

repeatername_repeateritemname_tablrowname_rowchildobjectname
 
I have a reapeater where each repeater item contains several table
rows. The table rows, in turn, contain several child objects. when
everthing is rendered, the client ids are constructed as such

repeatername_repeateritemname_tablerowname
repeatername_repeateritemname_rowchildobjectname


why does asp.net not construct the client ids as follows:

repeatername_repeateritemname_tablrowname_rowchildobjectname

The 'nested' naming structure is based on if a control implements
INamingContainer. Repeater does, the other two controls do not. When
the id is constructed, .NET walks thru the tree and the _ is added as
naming containers are encountered.
 
thanks a lot
not a problem...actually, I should have said it adds the naming
container control id and _ onto the prefix of the 'nested control''s
id...but you know what I meant :)
 

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

Back
Top