Itemtemplate requires unique control's id's

Discussion in 'ASP .Net Building Controls' started by Edwin Knoppert, Dec 11, 2006.

  1. Gridview:

    I would like to use two (or more itemtemplates) having a label named like
    Label1.

    I find it odd that FindControl() on a CELL object (RowDatabound event) can
    not distinguish the correct controls.
    It seems to use the whole row to look for a control.

    It would save time if i could use this without renumbering and preparing a
    counter to enumerate the controls from event code.

    ??
     
    Edwin Knoppert, Dec 11, 2006
    #1
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jeff Tolman
    Replies:
    0
    Views:
    3,240
    Jeff Tolman
    Nov 4, 2003
  2. Bennett Haselton
    Replies:
    1
    Views:
    5,623
    Joe Fallon
    Sep 24, 2004
  3. SouthSpawn
    Replies:
    1
    Views:
    3,254
    Scott Allen
    Apr 22, 2005
  4. Replies:
    1
    Views:
    1,004
  5. Replies:
    6
    Views:
    11,696
    elizas
    May 5, 2010
  6. ToshiBoy
    Replies:
    6
    Views:
    1,107
    ToshiBoy
    Aug 12, 2008
  7. Elton W
    Replies:
    0
    Views:
    265
    Elton W
    Apr 21, 2005
  8. Token Type
    Replies:
    9
    Views:
    555
    Chris Angelico
    Sep 9, 2012
Loading...