Atlas Cascading Down Page Load

Discussion in 'ASP .Net' started by sjickells@gmail.com, Sep 8, 2006.

  1. Guest

    Hi,

    Can any one help?

    I have implemented the atlas toolkit in an application. For some reason
    pages that contain the atlas controls call the page load method twice.

    Here is the atlas code:

    <%@ Control Language="C#" AutoEventWireup="true"
    CodeFile="CascadingDropDown_Validated.ascx.cs"
    Inherits="UserControls_CascadingDropDown_Validated" %>
    <%@ Register Assembly="AtlasControlToolkit"
    Namespace="AtlasControlToolkit" TagPrefix="atlasToolkit" %>

    <%@ Register Assembly="PeterBlum.VAM.MSStyle"
    Namespace="PeterBlum.VAM.MSStyle" TagPrefix="M2V" %>
    <%@ Register TagPrefix="vam" Namespace="PeterBlum.VAM"
    Assembly="PeterBlum.VAM" %>

    <script runat="server">
    </script>



    <atlas:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <table border="0" width="720">
    <tr>
    <td class="bold" align="right" style="width: 180px">
    Staff Id:
    </td>
    <td align="left" style="width: 180px">
    <asp:TextBox ID="txtStaffId" runat="server"
    CssClass="formSelectBox"></asp:TextBox>
    </td>
    <td style="width: 360px">&nbsp;</td>
    </tr>
    <tr>
    <td class="bold" align="right" style="width: 180px">
    Channel:
    </td>
    <td align="left" style="width: 180px">
    <asp:DropDownList ID="ddlChannel" runat="server"
    CssClass="formSelectBox">
    </asp:DropDownList>
    </td>
    <td style="width: 360px">&nbsp;</td>
    </tr>
    <tr>
    <td class="bold" align="right">
    Region:
    </td>
    <td align="left" >
    <asp:DropDownList ID="ddlRegion" runat="server"
    CssClass="formSelectBox">
    </asp:DropDownList>
    </td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td class="bold" align="right">
    Area:
    </td>
    <td>
    <asp:DropDownList ID="ddlArea" runat="server"
    CssClass="formSelectBox">
    </asp:DropDownList>
    </td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td class="bold" align="right">
    Advisor:
    </td>
    <td>
    <asp:DropDownList ID="ddlAdvisor" runat="server"
    CssClass="formSelectBox" AutoPostBack="True"
    OnSelectedIndexChanged="CascadingDropDown_OnItemChange">
    </asp:DropDownList>
    </td>
    <td>&nbsp;</td>
    </tr>
    </table>

    <br />

    </ContentTemplate>
    </atlas:UpdatePanel>


    <atlasToolkit:CascadingDropDown ID="CascadingDropDown1" runat="server">
    <atlasToolkit:CascadingDropDownProperties
    TargetControlID="ddlChannel" Category="channel" PromptText="-- Please
    select --" LoadingText="Loading Channels..."
    ServiceMethod="GetDropDownContentsPageMethod" />
    <atlasToolkit:CascadingDropDownProperties
    TargetControlID="ddlRegion" Category="region" PromptText="ALL"
    LoadingText="Loading Region..." ServicePath="ChannelsService.asmx"
    ServiceMethod="GetDropDownContents" ParentControlID="ddlChannel" />
    <atlasToolkit:CascadingDropDownProperties TargetControlID="ddlArea"
    Category="area" PromptText="ALL" LoadingText="Loading Area..."
    ServicePath="ChannelsService.asmx"
    ServiceMethod="GetDropDownContents" ParentControlID="ddlRegion" />
    <atlasToolkit:CascadingDropDownProperties
    TargetControlID="ddlAdvisor" Category="advisor" PromptText="ALL"
    LoadingText="Loading Advisors..." ServicePath="ChannelsService.asmx"
    ServiceMethod="GetDropDownContents" ParentControlID="ddlArea" />
    </atlasToolkit:CascadingDropDown>


    Anyone else had this problem and managed to fix it?

    Cheers

    Si
    , Sep 8, 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. pintu
    Replies:
    0
    Views:
    1,199
    pintu
    Sep 14, 2006
  2. Replies:
    0
    Views:
    411
  3. Replies:
    0
    Views:
    463
  4. Michel Couche

    Cascading radiobutton group/drop down list

    Michel Couche, Apr 28, 2007, in forum: Javascript
    Replies:
    1
    Views:
    163
    shimmyshack
    Apr 29, 2007
  5. OccasionalFlyer

    Cascading drop-down restructuring

    OccasionalFlyer, Feb 7, 2011, in forum: Javascript
    Replies:
    12
    Views:
    171
    Thomas 'PointedEars' Lahn
    Feb 24, 2011
Loading...

Share This Page