Hi,
I have some dropdownlist web controls on as aspx page. I want to loop
through them on first (!IsPostBack) Page_Load in order to populate them. The
foreach control structure seems to be a good condidate for this though I'm
having problems getting the right syntax/form. I've been trying variations on
the following:
foreach (DropDownList myDDL in Controls)
{
//do something here
}
Can anyone give me an indication of what I maight be doing wrong?
many thanks,
Pete