Home All Groups Group Topic Archive Search About
Author
19 Dec 2006 7:33 AM
Troy Donavan
The idea here is to get the user's country, state and city and when the
country is selected the selections for state would be updated and similarly
for state, when a state is selected the selections for city would be updated.
Unfortunately, none of the triggers are firing.  Any idea why?

Here is the code in a page with three DropDownList controls.

<%@ Page Language="VB" MasterPageFile="~/TasiAsp.master"
AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default"
title="Untitled Page" %>
<asp:Content ID="ContentLogIn" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">

    <asp:UpdatePanel ID="UPCountry" runat="server">
    <ContentTemplate>


        <asp:DropDownList ID="DDCountry" runat="server" style="z-index: 100;
left: 500px; position: absolute; top: 100px; width: 200">
        </asp:DropDownList>

    </ContentTemplate>
    </asp:UpdatePanel>




    <asp:UpdatePanel ID="UPState" runat="server">
    <ContentTemplate>
<asp:DropDownList style="Z-INDEX: 100; LEFT: 500px; WIDTH: 200px; POSITION:
absolute; TOP: 130px" id="DDState" runat="server" __designer:wfdid="w4">
        </asp:DropDownList>
</ContentTemplate>
        <triggers>
<asp:AsyncPostBackTrigger ControlID="DDCountry"
EventName="TextChanged"></asp:AsyncPostBackTrigger>
</triggers>
    </asp:UpdatePanel>





    <asp:UpdatePanel ID="UPLocality" runat="server">
    <ContentTemplate>
<asp:DropDownList style="Z-INDEX: 100; LEFT: 500px; WIDTH: 200px; POSITION:
absolute; TOP: 160px" id="DDLocality" runat="server" __designer:wfdid="w5">
        </asp:DropDownList>
</ContentTemplate>
        <triggers>
<asp:AsyncPostBackTrigger ControlID="DDState"
EventName="TextChanged"></asp:AsyncPostBackTrigger>
<asp:AsyncPostBackTrigger ControlID="DDCountry"
EventName="TextChanged"></asp:AsyncPostBackTrigger>
</triggers>
    </asp:UpdatePanel>


</asp:Content>


--
Troy Donavan
trdona***@yahoo.com

Author
21 Dec 2006 8:01 AM
Troy Donavan
Further to the post quoted below, I have simplified the page to contain a
single Update panel.  Unfortunately, I still don't get any triggering.  Here
is the simplified page:

<%@ Page Language="VB" MasterPageFile="~/TasiAsp.master"
AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default"
title="Untitled Page" %>
<asp:Content ID="ContentLogIn" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">

    <asp:UpdatePanel ID="UPCountry" runat="server">
    <ContentTemplate>


        <asp:DropDownList ID="DDCountry" runat="server" style="z-index: 100;
left: 500px; position: absolute; top: 100px; width: 200">
        </asp:DropDownList>

<asp:DropDownList style="Z-INDEX: 100; LEFT: 500px; WIDTH: 200px; POSITION:
absolute; TOP: 130px" id="DDState" runat="server" __designer:wfdid="w4">
        </asp:DropDownList>


<asp:DropDownList style="Z-INDEX: 100; LEFT: 500px; WIDTH: 200px; POSITION:
absolute; TOP: 160px" id="DDLocality" runat="server" __designer:wfdid="w5">
        </asp:DropDownList>
</ContentTemplate>
        <triggers>
<asp:AsyncPostBackTrigger ControlID="DDState"
EventName="TextChanged"></asp:AsyncPostBackTrigger>
<asp:AsyncPostBackTrigger ControlID="DDCountry"
EventName="TextChanged"></asp:AsyncPostBackTrigger>
</triggers>
    </asp:UpdatePanel>


</asp:Content>


--
Troy Donavan


Show quoteHide quote
"Troy Donavan" wrote:

> The idea here is to get the user's country, state and city and when the
> country is selected the selections for state would be updated and similarly
> for state, when a state is selected the selections for city would be updated.
>  Unfortunately, none of the triggers are firing.  Any idea why?
>
> Here is the code in a page with three DropDownList controls.
>
> <%@ Page Language="VB" MasterPageFile="~/TasiAsp.master"
> AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default"
> title="Untitled Page" %>
> <asp:Content ID="ContentLogIn" ContentPlaceHolderID="ContentPlaceHolder1"
> Runat="Server">
>
>     <asp:UpdatePanel ID="UPCountry" runat="server">
>     <ContentTemplate>
>    
>    
>         <asp:DropDownList ID="DDCountry" runat="server" style="z-index: 100;
> left: 500px; position: absolute; top: 100px; width: 200">
>         </asp:DropDownList>
>    
>     </ContentTemplate>
>     </asp:UpdatePanel>
>
>
>
>
>     <asp:UpdatePanel ID="UPState" runat="server">
>     <ContentTemplate>
> <asp:DropDownList style="Z-INDEX: 100; LEFT: 500px; WIDTH: 200px; POSITION:
> absolute; TOP: 130px" id="DDState" runat="server" __designer:wfdid="w4">
>         </asp:DropDownList>
> </ContentTemplate>
>         <triggers>
> <asp:AsyncPostBackTrigger ControlID="DDCountry"
> EventName="TextChanged"></asp:AsyncPostBackTrigger>
> </triggers>
>     </asp:UpdatePanel>
>
>
>
>
>
>     <asp:UpdatePanel ID="UPLocality" runat="server">
>     <ContentTemplate>
> <asp:DropDownList style="Z-INDEX: 100; LEFT: 500px; WIDTH: 200px; POSITION:
> absolute; TOP: 160px" id="DDLocality" runat="server" __designer:wfdid="w5">
>         </asp:DropDownList>
> </ContentTemplate>
>         <triggers>
> <asp:AsyncPostBackTrigger ControlID="DDState"
> EventName="TextChanged"></asp:AsyncPostBackTrigger>
> <asp:AsyncPostBackTrigger ControlID="DDCountry"
> EventName="TextChanged"></asp:AsyncPostBackTrigger>
> </triggers>
>     </asp:UpdatePanel>
>
>
> </asp:Content>
>
>
> --
> Troy Donavan
> trdona***@yahoo.com

Bookmark and Share