How Can I get the value of a HtmlControl's variable?
<p>I have the follow line in my code </p>

<pre><code>HtmlControl divstatus = (HtmlControl)GridView1.Rows[j].FindControl("divstatus");
</code></pre>

<p>and in my .aspx </p>

<pre><code>&lt;div style="width:70px;" id="divStatus" runat="server"&gt;&lt;%# Eval("DscStatus")%&gt;&lt;/div&gt;
</code></pre>

<p>How can I get the value of my div in the codebehind using the class HtmlControl ?</p>

<p>My Grid View is too big, so i'll post just a part</p>

<pre><code>   &lt;asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="100%" CellPadding="4" 
        EnableModelValidation="True" ForeColor="#333333"&gt;
        &lt;FooterStyle BackColor="#990000" ForeColor="White" Font-Bold="True" /&gt;
        &lt;HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" /&gt;
        &lt;PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" /&gt;
        &lt;RowStyle BackColor="#FFFBD6" ForeColor="#333333" /&gt;
        &lt;SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" /&gt;
        &lt;AlternatingRowStyle BackColor="White" /&gt;
        &lt;Columns&gt;
            &lt;asp:TemplateField HeaderText="Chamado"&gt;
                &lt;ItemTemplate&gt;
                    &lt;div style="width:30px;"&gt;
                       &lt;a href='responder.aspx?cod=&lt;%# Eval("Codigo") %&gt;&amp;sta=&lt;%# Eval("StatusTicket_Id") %&gt;&amp;mot=&lt;%# Eval("MotivoTicket_Id") %&gt;'&gt;
                                &lt;%# Eval("Codigo") %&gt;
                            &lt;/a&gt;                                                                       
                        &lt;%# montaAnexo(Eval("Anexo").ToString())%&gt;                
                    &lt;/div&gt;
                &lt;/ItemTemplate&gt;                
            &lt;/asp:TemplateField&gt;
</code></pre>
