Groups | Blog | Home
all groups > asp.net > june 2004 >

asp.net : generate control IDs dynamically


Nick
6/12/2004 9:00:01 PM
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.

Trevor Benedict R
6/13/2004 6:06:13 AM
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 ***
AddThis Social Bookmark Button