Hi,
I have 2 dropdownlists and I want SiteCombo to be updated asyncronously when RegionCombo's SelectedIndexChanged event is fired.
Heres my code
<div class="dropDownHeader">Region:<br /></div>
<asp:DropDownList
id="RegionCombo"
runat="server"
OnSelectedIndexChanged="RegionCombo_SelectedIndexChanged"
cssclass="dropDownNav"
AutoPostBack="true">
</asp:DropDownList>
<asp:UpdatePanel id="regionPanel" runat="server" UpdateMode="Conditional">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="RegionCombo" EventName="SelectedIndexChanged" />
</Triggers>
<ContentTemplate>
<div class="dropDownHeader">Site:<br /></div>
<asp:DropDownList
id="SiteCombo"
runat="server"
OnSelectedIndexChanged="SiteCombo_SelectedIndexChanged"
cssclass="dropDownNav"
AutoPostBack="true">
</asp:DropDownList>
</ContentTemplate>
</asp:UpdatePanel>
Ok when I change RegionCombo it causes a full page reload?
Any ideas what I'm doing wrong?
-
-
It looks like only one of your control is in an update panel so the one that is not in an update panel will by default fire a page load.
Place both in update panels ( the same or both).
I also notice you are using conditional updating on your update panel do you have an event in the background to fire the update.
-
I have a trigger on the updatepanel for the external dropdownlist.
Turns out the code is fine, my web.config file has somehow been replaced with a standard one and didn't contain the ajax stuff!
I had a bad day yesterday
-
leeappdalecom said:I have a trigger on the updatepanel for the external dropdownlist.
Turns out the code is fine, my web.config file has somehow been replaced with a standard one and didn't contain the ajax stuff!
I had a bad day yesterday
hi leeappdalecom,
I am also facing the same problem , ca you please tell me what changes you made to your web config file I am presently using ajax toolkit version 3.5.
and my web confiig fiel has the following settings:
<compilation debug="true">
<assemblies>
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>can you please guide me wth your solution
Thread Closed
This thread is kinda stale and has been closed but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.