Click to See Complete Forum and Search --> : create class with included textboxes


mparker1113
02-28-2007, 11:51 AM
Hi,

Using c#, I would like to create a class that would have x number of text boxes, with their id's and labels for them created within the class.

Is this something that is easy to do?

sirpelidor
02-28-2007, 12:04 PM
this example shows you how to generate them dynamically (http://support.microsoft.com/kb/317515) from code-behind.

mparker1113
03-03-2007, 12:04 PM
I have a class that generates 'x' number of textboxes, naming them according to the names that are sent in a string array to the object.

But, I can't get the object's textboxes to be viewable on the aspx page which is using the object.

Anybody that can do this?


this example shows you how to generate them dynamically (http://support.microsoft.com/kb/317515) from code-behind.

Ribeyed
03-04-2007, 01:22 PM
can you paost code?

did you add them to your form/table/panel etc?

form.Controls.Add(TextBox)