DataList
Hello,
How do you get a value from a DataList. I have seen many examples getting the value of a check box in a DataList using the FindContol. This value I like to get is a label, but it just returns a null when there is data. C# code behind is:
Label lblToken = (System.Web.UI.WebControls.Label)dlCases.Items[2].FindControl("lblToken");
string strToken = lblToken.Text;
lblToken is the Label ID name in the ASPX web page.
Thanks,
Paul
|