javascript - dropdownlist not changed SelectedValue on server side -
i have dropdownlist
<asp:dropdownlist id="ddlnationality" runat="server" clientidmode="static"> </asp:dropdownlist>
in document ready set
ddlnationality.selectedindex = -1;
for show user nothing selected
after change value , click button on server side selected value alway zero, after change selected value in javascript check if selected values changed , ok, o server side selected value not changed,.. how proceed?
i can insert in dropdownlist first item no value , no text, want have in dropdownlist values without clear field
looks missing attribute autopostback="true"
Comments
Post a Comment