G
Guest
When programming for a windows application, i can create a Control object,
and then use this object to iterate through a window form's controls. For
example:
foreach(Control ctr in this.Controls)
{
// do something...
}
However, i am unable to create a Control object in ASP.NET. I am forced to
create specific objects for each scenario, for example, a TextBox control,
then a Label control, then a PlaceHolder control.
Is this simply not possible to create an all encompassing Control object w/
ASP.NET? And, if so, is there a "work around", other than creating a specific
control and routine for each scenario?
Thanks,
and then use this object to iterate through a window form's controls. For
example:
foreach(Control ctr in this.Controls)
{
// do something...
}
However, i am unable to create a Control object in ASP.NET. I am forced to
create specific objects for each scenario, for example, a TextBox control,
then a Label control, then a PlaceHolder control.
Is this simply not possible to create an all encompassing Control object w/
ASP.NET? And, if so, is there a "work around", other than creating a specific
control and routine for each scenario?
Thanks,