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

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

spring cloud - How to configure SpringCloud Eureka instance to point to https on non standard port -

javascript - Bootstrap Popover: iOS Safari strange behaviour -