获取DataList中的控件:
例如:获取Lable:
protected void dtFlowBase_ItemCommand(object source, DataListCommandEventArgs e)
{
Label lblFlowName = e.Item.FindControl("lblFlowName") as Label;
string FlowName = lblFlowName.Text;
}
获取DataList中的控件:
例如:获取Lable:
protected void dtFlowBase_ItemCommand(object source, DataListCommandEventArgs e)
{
Label lblFlowName = e.Item.FindControl("lblFlowName") as Label;
string FlowName = lblFlowName.Text;
}
转载于:https://www.cnblogs.com/qq1040991197/archive/2012/07/09/2582785.html