Posted By: leeappdalecom | Mar 8th, 2007 @ 2:51 AM
page 1 of 1
Comments: 3 | Views: 13090
leeappdalecom
leeappdalecom
.nettter
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.

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

page 1 of 1
Comments: 3 | Views: 13090
Microsoft Communities