protected void DataList1_ItemDataBound(object sender, DataListItemEventArgs e)
{
string sql="select count(id) from HRHierophantResult2008 where result like '%'"+ 这里如何绑定DataList对应的ID +"'%'"
SqlExecDatatable(sql);
……
……
……
}
先谢谢啦!
{
string sql="select count(id) from HRHierophantResult2008 where result like '%'"+ 这里如何绑定DataList对应的ID +"'%'"
SqlExecDatatable(sql);
……
……
……
}
先谢谢啦!
使用DataList1.DataKeys[e.Item.ItemIndex]获得当前行的设置的DataKeyField字段值