Does anyone know how to loop through the Page.Controls collection on a web page in order to find all instances of a RadioButtonList?? For example,
foreach (RadioButtonList rb in Page.Controls){
}
only this statement doesn't work.
This exercise was much simpler in classic ASP, but I haven't quite figured it out in ASP.NET.
Thanks,
DMill ======================================
"I wish that I may never think the smiles of the great and powerful a sufficient inducement to turn aside from the straight path of honesty and the convictions of my own mind."
-David Ricardo, classical economist
======================================
foreach (RadioButtonList rb in Page.Controls){
}
only this statement doesn't work.
This exercise was much simpler in classic ASP, but I haven't quite figured it out in ASP.NET.
Thanks,
DMill ======================================
"I wish that I may never think the smiles of the great and powerful a sufficient inducement to turn aside from the straight path of honesty and the convictions of my own mind."
-David Ricardo, classical economist
======================================