generate control IDs dynamically

Discussion in 'ASP .Net' started by =?Utf-8?B?Tmljaw==?=, Jun 13, 2004.

  1. Hi,

    I would like to create asp.net controls with ID names generated dynamically, such as from within a loop to create names like "C1" "C2" "C3" "C4" ... and so on.

    For example, I would like to create a set of <table> cells with Response.Write() in a loop. In those cells, I want to add asp.net controls. So I guess the question is to add those controls in the cells programmatically without using the <asp:> tag.

    Please advise! Thanks!
    =?Utf-8?B?Tmljaw==?=, Jun 13, 2004
    #1
    1. Advertising

  2. Can u create a template in pure HTML (the table layout, each row) and
    show us how you want it, then maybe we can provide a sample as to how
    you can achieve it. There are many different ways to do this.

    Trevor Benedict R
    MCSD

    *** Sent via Devdex http://www.devdex.com ***
    Don't just participate in USENET...get rewarded for it!
    Trevor Benedict R, Jun 13, 2004
    #2
    1. Advertising

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. David
    Replies:
    2
    Views:
    308
    Saravana [MVP]
    Jul 12, 2004
  2. John Saunders
    Replies:
    0
    Views:
    365
    John Saunders
    Jul 15, 2004
  3. Nate Hekman

    control ids

    Nate Hekman, Dec 2, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    364
    Matt Berther
    Dec 3, 2004
  4. =?Utf-8?B?UmFlZCBTYXdhbGhh?=

    User Control and Controls IDs problem

    =?Utf-8?B?UmFlZCBTYXdhbGhh?=, Feb 12, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    388
    Juan T. Llibre
    Feb 12, 2005
  5. Replies:
    2
    Views:
    690
    Beat Bolli
    Jun 21, 2005
Loading...

Share This Page