Note that there are some explanatory texts on larger screens.

plurals
  1. POCascadingDropDown in TabContainer and Target in other Tab
    primarykey
    data
    text
    <p>I have divised a page with a TabContainer.</p> <p>Before, this page worked with a CascadingDropDown that populate a DropDownList. Now this DropDownList is in another tab. So I catch an exception "Object Reference Null" when I try to see this page.</p> <p>How did runs to load a DropDownList in another Tab when I change a value in a different Tab ?</p> <p>Update:</p> <p>Thanks for your answer, but unfortunaly it doesn't work. </p> <p>I have tried with CascadingDropDownExtender outside the TabContainer, but Reference null is catched again. With CascadingDropDownExtender in same Panel as child DropDownList, I have a javascript alert that say Parent Control not found.</p> <p>Here the code with CascadingDropDownExtender in same Panel as child DropDownList</p> <p></p> <pre><code>&lt;cc2:TabPanel runat="server" HeaderText="Carte Identité" ID="TabCI"&gt; &lt;ContentTemplate&gt; &lt;ProspectMgt:MarketSegmentDropDownList ID="MarketSegmentDropDownList1" runat="server" AutoPostBack="false" Width="400px"&gt;&lt;/ProspectMgt:MarketSegmentDropDownList&gt; &lt;asp:CompareValidator ID="CompareValidator2" runat="server" CssClass="error" ToolTip="Required" ControlToValidate="MarketSegmentDropDownList1" ValueToCompare="-1" Operator="NotEqual" ErrorMessage="MktSegment" Display="Dynamic" Font-Bold="True"&gt;&lt;/asp:CompareValidator&gt; &lt;/ContentTemplate&gt; &lt;/cc2:TabPanel&gt; &lt;cc2:TabPanel ID="TabSize" runat="server" HeaderText="Size &amp; Volume"&gt; &lt;ContentTemplate&gt; &lt;asp:DropDownList ID="DropDownListSize" AutoPostBack="false" runat="server"&gt; &lt;/asp:DropDownList&gt; &lt;cc2:CascadingDropDown ID="cddSize" runat="server" TargetControlID="DropDownListSize" Category="Size" LoadingText="[...]" ServicePath="~/Modules/ProspectMgt/WebService/ServiceAjax.asmx" ServiceMethod="GetSizeByMktId" ParentControlID="MarketSegmentDropDownList1" /&gt; &lt;/ContentTemplate&gt; &lt;/cc2:TabPanel&gt; </code></pre> <p></p> <p>So I don't see why it is not working. It was working perfectly without TabContainer. I'm using AjaxToolKit 30512. However, I'm looking to drop CascadingDropDownExtender and manage this issue by javascript only.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload