c# - DropdownList SelectedItem is not working properly -
i'm facing strange problem when trying selected value of dropdownlist. have following controls on page: 4 dropdownlist, 2 textboxes, 6 listboxes , button. @ moment click on button controls preserve data can access them code behind. buut there 1 control doesn't behave in same way. it's 1 of 4 dropdownlist. when trying following empty string:
string sdata1 = this.dropdownlist1.selectedvalue; --> works ok string sdata2 = this.dropdownlist2.selectedvalue; --> works ok string sdata3 = this.dropdownlist3.selectedvalue; --> works ok string sdata4 = this.dropdownlist4.selectedvalue; --> not working basically html markup have each dropdownlist:
<asp:dropdownlist id="dropdownlis1" runat="server"></asp:dropdownlist> <asp:dropdownlist id="dropdownlis2" runat="server"></asp:dropdownlist> <asp:dropdownlist id="dropdownlis3" runat="server"></asp:dropdownlist> <asp:dropdownlist id="dropdownlis4" runat="server"></asp:dropdownlist> i've searching on internet see if there related without no luck. doubt have following. there possibility viewstate full , doesn't store selected value of dropdownlist?
any clue or appreciate thanks
Comments
Post a Comment