I am working on a web application in ASP.Net, and I have a datalist that contains several elements including a label.
That label has a data that I get from a database in SQL but, at the time of making the call to obtain the data of that label, its identifier does not appear, because it is inside the Datalist.
I want to know how you could look for that label or get the information you have.
<asp:DataList ID="dtlEventos" runat="server" RepeatColumns="3" RepeatDirection="Horizontal" CellPadding="1" CellSpacing="1">
<ItemTemplate>
<div class="view view-first">
<asp:Image ID="ImgEventos" runat="server" style="width:auto;" CssClass="centered img-responsive" Height="100%" ImageUrl='<%# "/Imagenes/" + Eval("foto") %>' />
<div class="mask">
<h2><asp:Label ID="blbNomEvento" runat="server" Text='<%# Eval("nom_evento") %>' ></asp:Label></h2>
<br>
<br></br>
<asp:Button ID="btnViewmore" runat="server" OnClick="btnViewmore_Click" Text="Ver más" />
</br>
</div>
</div>
</ItemTemplate>
</asp:DataList>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>