I am facing a challenge with a collection of checkboxes that represent settings for equipment displayed on a page. The checkboxes are populated using ObjectdataSource and an IEnumerable method to bring distinct settings. Additionally, I have created a drop-down list (DDL) containing equipment names. My goal is to automatically check the checkboxes associated with a selected equipment name when a user picks it from the DDL.
The issue arises when attempting to reload the page every time a different piece of equipment is chosen, as all equipment and their settings are stored in one table. I am currently exploring solutions using JavaScript and C#, but have not found a similar problem to reference.
Any guidance or assistance on the best approach to tackle this challenge would be greatly appreciated.
EnableViewState="true">
<asp:ListItem Text="-Select-" Value="Select" Enabled="true"/>
</asp:DropDownList>
<input type="button" value="Select All" class="markerSelectAll"/>
<input type="button" value="Unselect All" class="markerUnSelectAll"/>
<asp:ObjectDataSource runat="server" ID="SettingsObjectDataSource" SelectMethod="GetDistinctequipmentSettingNames"` TypeName="class"></asp:ObjectDataSource>