Note that there are some explanatory texts on larger screens.

plurals
  1. PORadioButtonList inside UpdatePanel inside Repeater, Can I?
    primarykey
    data
    text
    <p>I have a repeater with a RadioButtonList inside the ItemTemplate, but when the RadioButtonList.OnSelectedIndexChanged event fires it generates a full postback. What have I done wrong in my code below? How can I get the OnSelectedIndexChanged to generate an Async Postback?</p> <pre><code>&lt;asp:UpdatePanel runat="server" ID="UpdatePanel2"&gt; &lt;ContentTemplate&gt; &lt;asp:Repeater ID="Repeater1" runat="server" DataSourceID="sqlOptions"&gt; &lt;ItemTemplate&gt; &lt;asp:UpdatePanel runat="server" ID="pnlA"&gt; &lt;ContentTemplate&gt; &lt;strong&gt; &lt;%# Eval("Name") %&gt;&lt;/strong&gt;&lt;br /&gt; &lt;asp:RadioButtonList ID="RadioButtonList1" DataSourceID="sqlOptionValues" runat="server" DataTextField="id" DataValueField="Id" AutoPostBack="true" OnSelectedIndexChanged="LoadPrice" ValidationGroup="options" /&gt; &lt;asp:RequiredFieldValidator ID="RequiredFieldValidator1" ForeColor="Red" runat="server" ControlToValidate="RadioButtonList1" ErrorMessage="Required Field" ValidationGroup="options" /&gt; &lt;asp:SqlDataSource ID="sqlOptionValues" runat="server" ConnectionString="&lt;%$ ConnectionStrings: ConnectionString6 %&gt;" SelectCommand='&lt;%# "SELECT DISTINCT OptionValue.Name, OptionValue.Id FROM CombinationDetail INNER JOIN OptionValue ON CombinationDetail.OptionValueId = OptionValue.Id WHERE (OptionValue.OptionId =" + Eval("Id") + ")" %&gt;'&gt; &lt;/asp:SqlDataSource&gt; &lt;br /&gt; &lt;/ContentTemplate&gt; &lt;/asp:UpdatePanel&gt; &lt;/ItemTemplate&gt; &lt;/asp:Repeater&gt; &lt;/ContentTemplate&gt; &lt;/asp:UpdatePanel&gt; </code></pre> <p>Many thanks for any help :)</p>
    singulars
    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.
 

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