获取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;
}