c# - when I use the DropDownList1_SelectedIndexChanged to be the trigger of UpDatePanel,it dosn't work -


and tip “dropdownlist1” didn't find “dropdownlist1_selectedindexchanged”

</asp:scriptmanager>  <asp:updatepanel id="updatepanel1" runat="server">     <contenttemplate>      <asp:dropdownlist id="dropdownlist1" runat="server"           onselectedindexchanged="dropdownlist1_selectedindexchanged">          <asp:listitem>1</asp:listitem>      </asp:dropdownlist>     </contenttemplate>          <triggers>              <asp:asyncpostbacktrigger controlid="dropdownlist1" eventname="dropdownlist1_selectedindexchanged" />           </triggers> 

please tell me how make work!

you need autopostback=true

<asp:dropdownlist id="dropdownlist1" runat="server"  autopostback="true"            onselectedindexchanged="dropdownlist1_selectedindexchanged"> 

Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -