In my aspx page, I have a number of drop down controls.
I would like to update an attribute on each of the controls with "class=leftColumn" with the following line:
propertyID.Attributes["nameOfAttribute"] = "false";
But instead of manually writing out each controlID and setting its attribute with the line above, I had hoped there was a way to go through and set the attribute on each control ID if it had class=leftcolumn.
This is something I know is very easy with JQuery, BUT I need to do it with the code behind (C#)
I was told this is not possible (i.e. to acquire a list of all the controls and then iterate through the list and give it the attribute or any other way. That manually setting each control like the above example is the only way in ASP.NET.
Thanks,