in .net , i have a problem . i want the text of label in datalist and i cant use id because its in datalist in its id is not available in c# or js .i don’t can use for to my label because i don’t now user click to Which linkbutton.
. this is my code :
<asp:LinkButton OnClick="click" runat="server" ID="label" ><%# Eval("Id")%></asp:LinkButton>
and in c sharp i want when user click the text of label saved to variable
i thought id is works when element in datalist
New contributor
amir aabas rafighi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.