Atlas Cascading Down Page Load

S

sjickells

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,432
Messages
2,571,681
Members
48,796
Latest member
Greg L.

Latest Threads

Top