首页 新闻 会员 周边

asp.net 根据checkbox所选中的gridview的值来进行返回 怎么实现

0
悬赏园豆:20 [待解决问题]

protected void Unnamed1_Click(object sender, EventArgs e)
{
List<ProcessBreed> la = SessionStorage.GetEntity<List<ProcessBreed>>(base.UCID + "_breedRef");
if (la != null)
{
for (int i = 0; i < gvProjectBreedList.Rows.Count - 1; i++)
{
CheckBox cbox = (CheckBox)gvProjectBreedList.Rows[i].FindControl("cbx");
if (cbox.Checked == true)
{
// ProcessBreed pb = la[cbox.FindControl(cbox.Checked)];
//cbox.v
if (ExitEvent != null)
{
ExitEvent(pb);
}
}
}
}
gvProjectBreedList.Visible = false;
}
}

想回家的每一天的主页 想回家的每一天 | 初学一级 | 园豆:184
提问于:2021-09-30 09:04
< >
分享
所有回答(2)
1
勤奋的二牛 | 园豆:8 (初学一级) | 2021-09-30 11:19
0

if (cbox.Checked == true)
{
pb = lsProcessBreed.Find(p => p.CreateByType == "xx" && p.CreateDate == "cc" && p.State == "ee" && p.CreateEmployee.ChineseName == "dd");

想回家的每一天 | 园豆:184 (初学一级) | 2021-10-08 15:24
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册