Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>First thing I can see is you don't need the <code>Triggers</code> setup to look at your <code>CheckBox</code> since the <code>CheckBox</code> is in the <code>UpdatePanel</code>. You only need to use <code>Triggers</code> when you want the <code>UpdatePanel</code> to refresh based on something outside of it.</p> <p>I have taken your code as is and tested it and cannot recreate your problem so there must be more going on. Can you supply more code? Maybe just above it where the table is being defined?</p> <p>EDIT: I think the problem is your <code>Panel</code> is defined in a <code>table</code> which is rendering a <code>div</code> between your <code>tr</code> tags. You shoudn't do that because your making some wackey tables. Change your code to:</p> <pre><code>&lt;asp:ScriptManager ID="SM1" runat="server" /&gt; &lt;table&gt; &lt;tr&gt; &lt;td&gt;&lt;asp:CheckBox ID="chkPaypal" runat="server" Text="Paypal" OnCheckedChanged="PayPal_CheckedChanged" AutoPostBack="true" /&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional"&gt; &lt;Triggers&gt; &lt;asp:ASyncPostBackTrigger ControlID="chkPayPal" /&gt; &lt;/Triggers&gt; &lt;ContentTemplate&gt; &lt;asp:Panel ID="pnlPayPal" runat="server" Visible="false"&gt; &lt;table&gt; &lt;tr&gt; &lt;td&gt;&amp;nbsp;&amp;nbsp;&lt;asp:Label runat="server" ID="lblPaypalEmail" Text="Email:" /&gt;&lt;/td&gt; &lt;td&gt;&lt;asp:TextBox runat="server" ID="tbPaypalEmail" Text="" Width="250px" /&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt; &lt;/table&gt; &lt;/asp:Panel&gt; &lt;/ContentTemplate&gt; &lt;/asp:UpdatePanel&gt; </code></pre>
    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.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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