全部博文(64)
分类: 嵌入式
2012-11-02 15:21:41
1.Repeater控件的部分代码: 其中bigControlID和ControlID为你所用控件的id号,比如说GridView 和Repeater控件等 后台获取checkbox的值: 两种写法区别 foreach (RepeaterItem item in this.RptProductList.Items) ================================================================== foreach (RepeaterItem item in this.RptProductList.Items)
数据
2.javascript的部分代码:
{
CheckBox check = (CheckBox)item.FindControl("chkItem");
if (check.Checked)
{
Response.Write(check.Text+"|");
}
}
{
HtmlInputCheckBox check = (HtmlInputCheckBox)item.FindControl("chkSelect");
if (check.Checked)
{
Response.Write(check.value+"|");
}
}