N
needin4mation
I have this code:
protected void DataList1_ItemCreated(object sender,
DataListItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType ==
ListItemType.AlternatingItem)
{
Label lbl = (Label)DataList1.FindControl("lblTest");
Response.Write(lbl.Text);
}
}
First, do I have to have that ListItemType.item, etc. stuff in asp.net
2.0? On the findcontrol, I did some searching and saw where I had to
have a something like
DataList1.FindControl(myID).FindControl("myControl");
I don't know what the myID is or if I need it.
Thank you for any help.
protected void DataList1_ItemCreated(object sender,
DataListItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType ==
ListItemType.AlternatingItem)
{
Label lbl = (Label)DataList1.FindControl("lblTest");
Response.Write(lbl.Text);
}
}
First, do I have to have that ListItemType.item, etc. stuff in asp.net
2.0? On the findcontrol, I did some searching and saw where I had to
have a something like
DataList1.FindControl(myID).FindControl("myControl");
I don't know what the myID is or if I need it.
Thank you for any help.