protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
{
GridViewRow row = GridView1.SelectedRow;
this.txtha81.Checked = bool.Parse(row.Cells[37].Text);
}
以上是我的代码, 总是报错,报错详情如下:
"该字符串未被识别为有效的布尔值。"
这个代码应该如何改呢
{
GridViewRow row = GridView1.SelectedRow;
this.txtha81.Checked = bool.Parse(row.Cells[37].Text);
}
以上是我的代码, 总是报错,报错详情如下:
"该字符串未被识别为有效的布尔值。"
这个代码应该如何改呢
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货