Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I need to find a way to call controls dynamically. I've given up trying to create the controls dynamically, but I am hoping that I can at least Call them in such a manner.

 

I'm trying to create a page where a user will be able to select certain colours they'd like to use by clicking on checkboxes. Since the colours will be created dynamically from a database, I dont know how many there will be. But say if there are 9 colours to be displayed I want to be able to have a loop that will call the first 9 checkboxes.

 

The checkboxes have ID's like this: chk1, chk2 chk3 etc. I want to be able to somehow increment my way through the controls.

 

Does anyone know how to do that?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...