I have a 2 part question.
I have written an application that uses multiple dropdownlist controls. I use a SQLDataSource to populate each of these controls.
My first question is:
Is there a way to have my dropdownlist controls not display a selected item when the page first loads? I tried dropdownlist.selectedindex = -1 in the Page_Load event, but that did not work. Is there another control that I could use that would accomplish this?
My second question is:
I want some controls in my page to be enabled or disabled based on what is selected in one of my dropdownlist controls. The only way I was able to accomplish this was by setting the AutoPostback to true in my control. This did the trick in disabling and enabling controls, but it also causes my entire page to refresh and clearing some field values that had already been filled in. How can I disable some controls and keep my entire page from refreshing?
Thanks in advance,