c# - How can I use ASP.Net UpdatePanels to avoid full postback? -


I have a dropdown list called "ddlcountry" which is to update another dropdown list called "ddlCity". How do I use fully UpdatePanel to load just list the second dropdown instead of postback? Li & gt; Because I think I postback property before the drop-down list as "not found" SelectedIndexChanged "event without right" set

I

  & lt tryed ; & Lt; Label & gt; Groupo Gestore: & lt; / Labels & gt; & Lt; ASP: DropDownList ID = "ddlCountry" runat = "server" width = "356px" DataTextField = "Country" DataValueField = "CodCountry" AutoPostBack = "false" OnSelectedIndexChanged = "ddlGrupoGestor_SelectedIndexChanged" / & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; Label & gt; Gestor: & lt; / Labels & gt; & Lt; asp: UpdatePanel ID = "upd_ddlGroup1" runat = "server" Apdetmod = "conditional" & gt; & Lt; ContentTemplate & gt; & Lt; ASP: DropDownList ID = "ddlCity" runat = "server" width = "356px" DataTextField = "city" DataValueField = "CodCity" / & gt; & Lt; / ContentTemplate & gt; & Lt; Trigger & gt; & Lt; asp: asyncPostBackTrigger ControlID = "ddlCountry" EventName = "selected Indian Chenjed" / & gt; & Lt; / Trigger & gt; & Lt; / ASP: UpdatePanel & gt; & Lt; / Li & gt;  

did not work

The best thing in your scenario is ajax Control Toolkit's Cascaded DropDownList will be used

To use it, see here:.


Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -