我首先在页面使用程序,动态生成了了几个checkbox:
Dim theCheckBox As System.Web.UI.HtmlControls.HtmlInputCheckBox
theCheckBox = New System.Web.UI.HtmlControls.HtmlInputCheckBox
If varIsAdd = 0 Then
theCheckBox.Disabled = False
End If
theCheckBox.Attributes.Add("ID", "check_" & varFunctionID & "_IsAdd")
e.Item.Cells(1).Controls.Add(theCheckBox)
theLabel = New Label
theLabel.Text = "可添加"
e.Item.Cells(1).Controls.Add(theLabel)那么我怎么在页面提交以后获得这些checkbox的checked的属性值?
Dim theCheckBox As System.Web.UI.HtmlControls.HtmlInputCheckBox
theCheckBox = New System.Web.UI.HtmlControls.HtmlInputCheckBox
If varIsAdd = 0 Then
theCheckBox.Disabled = False
End If
theCheckBox.Attributes.Add("ID", "check_" & varFunctionID & "_IsAdd")
e.Item.Cells(1).Controls.Add(theCheckBox)
theLabel = New Label
theLabel.Text = "可添加"
e.Item.Cells(1).Controls.Add(theLabel)那么我怎么在页面提交以后获得这些checkbox的checked的属性值?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货