UpdatePanel with RadioButtonList
<p>I've been trying to learn how to use Update Panel but I'm not being able to make it show a different string in the label inside of a div on the Update Panel depending on the RadioButtonList choice.</p>

<pre><code>                        &lt;td class="right-td"&gt;
                            &lt;asp:RadioButtonList ID="rdlUrgencia" runat="server" RepeatDirection = "Horizontal" AutoPostBack="true" OnSelectedIndexChanged="rdlUrgencia_SelectedIndexChanged"&gt;
                                &lt;asp:ListItem Text="Sim" Value="1" /&gt;
                                &lt;asp:ListItem Text="Não" Value="0" /&gt;
                            &lt;/asp:RadioButtonList&gt;
                            &lt;asp:UpdatePanel ID="UpdatePanel" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="false" RenderMode="Inline"&gt;
                                &lt;ContentTemplate&gt;
                                    &lt;div id="divTexto" runat="server" visible="false"&gt;
                                        &lt;asp:Label ID="labelSN" runat="server" Visible="false"&gt;&lt;/asp:Label&gt;
                                    &lt;/div&gt;
                                &lt;/ContentTemplate&gt;
                                &lt;Triggers&gt;
                                    &lt;asp:AsyncPostBackTrigger ControlID="rdlUrgencia" EventName="rdlUrgencia_SelectedIndexChanged" /&gt;
                                &lt;/Triggers&gt;
                            &lt;/asp:UpdatePanel&gt;
                            &lt;br/&gt;
                        &lt;/td&gt;
</code></pre>

<p>And:</p>

<pre><code>    protected void rdlUrgencia_SelectedIndexChanged(object sender, EventArgs e)
    {
        divTexto.Visible = true;
        labelSN.Visible = true;

        if (rdlUrgencia.Text == "Sim")
        {
            labelSN.Text = "Sim";
        }
        if (rdlUrgencia.Text == "Não")
        {
            labelSN.Text = "Não";
        }
    }
</code></pre>

<p>What am I doing wrong and how can I fix it?</p>