Note: I am fairly new with ASP.NET
I have a form with two ComboBoxes and one ASP.NET CheckBox list.
I am running into issues outlined as follows:
Though the query was accurate(confirmed by setting breakpoints and hovering over the query and everything step by step) the second ComboBox would not filter by the selected value of the first dropdown. I was then advised to set EnableViewState to false, which I did.
It all worked very nicely, the first ComboBox filtered the second one and the second ComboBox populated the Asp list. The issue now is that the checkboxes selected by the user in the asp list are being deselected after a postback.
When I set EnableViewState to true the checkboxes just refresh, but the second ComboBox does not filter.
Any ideas on what might resolve this issue?
Thank you so much in advance!
I figured it out. It was because of the type of
ComboBoxI was using (Obout), though I did not think it was. TheOboutComboBoxneeds to have its controls cleared before it is binded after a post back. (So the load function needed this line of code to work:ComoboBox2.Controls.Clear();) This way one can leave EnableViewState to true.I hope this helps anyone using the Obout conrol struggling with the same issue.
Cheers