62,040
社区成员
发帖
与我相关
我的任务
分享
int total = 0;
foreach(GrifViewRow gvr in GridView1.Rows)
{
TextBox TextBox =(TextBox)gvr.FindControl("TextBox1");
total+=Int32.Parse(TextBox .Text);
}
label1.text=total.toString();
int total = 0;
foreach(GrifViewRow gvr in GridView1.Rows)
{
TextBox TextBox =(TextBox)gvr.FindControl("TextBox1");
total+=Int32.Parse(TextBox .Text);
}
label1.text=total.toString();