AJAX.NET triggers don't fire

Discussion in 'ASP .Net Web Controls' started by Troy Donavan, Dec 19, 2006.

  1. Troy Donavan

    Troy Donavan Guest

    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
    Troy Donavan, Dec 19, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. bruce barker
    Replies:
    1
    Views:
    456
    =?Utf-8?B?U2lsZWVzaA==?=
    Apr 2, 2004
  2. =?Utf-8?B?QWxleA==?=

    Ajax - ascx and updatepanel triggers

    =?Utf-8?B?QWxleA==?=, Apr 26, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    806
    =?Utf-8?B?QWxleA==?=
    Apr 26, 2007
  3. Guest
    Replies:
    3
    Views:
    764
    Patrice
    Sep 27, 2008
  4. Scott M.
    Replies:
    1
    Views:
    7,168
    Scott M.
    Mar 17, 2009
  5. Troy Donavan

    Ajax Triggers for DropDownList don't fire

    Troy Donavan, Dec 22, 2006, in forum: ASP .Net Web Controls
    Replies:
    3
    Views:
    217
    Troy Donavan
    Dec 27, 2006
Loading...

Share This Page