how we can find div in datalist
<p>in my data list i have a  (div) and it's id is divpost and it's visibility is false. now i like to find that in datalist_databound and if condition is ok visibility will be true.</p>

<p>so i have used below code, but i do not know how i have to find (divpost).</p>

<p>for finding lables or another controls i have no problem according to below code, but for div i do not know how?</p>

<pre><code> protected void DataList1_ItemDataBound
 (object sender, DataListItemEventArgs e)
{


  var x = (Guid)(DataList1.DataKeys[e.Item.ItemIndex]);
    Label labelstatus = (Label)e.Item.FindControl("lblstatus");
    Label labelcomment = (Label)e.Item.FindControl("lblcomment");
    BindLable(labelstatus,labelcomment, x);


    var q3 = (from s in _DataContext.tblSends


              where (s.DraftId == _Draftid) 

              select s.ToEmailId ).Distinct();


    if ((Guid)q3.SingleOrDefault() == (Guid)Membership.GetUser().ProviderUserKey)
    {
        divpostcomment.visible = true;
    }
</code></pre>

<p>aspx markup is like below:</p>

<pre><code>&lt;asp:DataList ID="DataList1" runat="server" DataKeyField="userid" 
    OnItemDataBound="DataList1_ItemDataBound" 
    &gt;
    &lt;SeparatorStyle BorderStyle="Dotted" /&gt;
    &lt;ItemTemplate&gt;
        &lt;table class="style2"&gt;
            &lt;tr&gt;
                &lt;td&gt;

                   &lt;asp:Label ID="Label5" runat="server" Text='&lt;%# "comments from "+Eval("username") %&gt;'&gt;&lt;/asp:Label&gt;
                    &lt;asp:Label ID="lblStatus" runat="server" Text=""&gt;&lt;/asp:Label&gt;
                    &lt;br /&gt;

                    &lt;asp:Label ID="lblComment" runat="server" Text=""&gt;&lt;/asp:Label&gt;

                    &lt;div id="divPostComment" runat="server" visible="false"&gt;

                        &lt;asp:TextBox ID="txtComment" runat="server"&gt;&lt;/asp:TextBox&gt;
                        &lt;asp:FileUpload ID="FileUpload1" runat="server" /&gt;
                        &lt;asp:Button ID="btnUpload" runat="server" Text="Upload" /&gt;
                        &lt;asp:Button ID="pstComment" runat="server" Text="Post Comment" /&gt;

                    &lt;/div&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td&gt;



                &lt;/td&gt;
            &lt;/tr&gt;
</code></pre>
