this is my code there are error in it can someone tell me how to correct this?
foreach (System.Web.UI.Control ctrl in Table)
{
if (ctrl is DropDownList)
{
DropDownList dd = new DropDownList(ctrl);
break;
}
}
Getting the control in a WebForm
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
jason pezzimenti6 pointsPosted Oct 9, 2008, 11:42 PM EDT
please provide more code. have you tried renaming "dd" to "ctrl"? ... probably a stupid question