验证输入复选框 [英] validation input Checkbox

查看:93
本文介绍了验证输入复选框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

For T As Integer = 0 To DtTable.Rows.Count - 1
 StrContent &= "<tr><td with="20%"><input type='checkbox' Name='chk' ID='T' runat='server' onclick='javascript:CalcTotTickets(this);' title='T' " & T & "  />" & DtTable.Rows(T).Item("ROOM_NAME").ToString & "</td></tr>"
  Next





Dim strTemp As String
Dim ar As New ArrayList
Dim inputbox As New HtmlInputCheckBox

For Each strTemp In Request.Form.AllKeys
    If strTemp.IndexOf("chk") > 0 Then

    End If
Next



我再次需要将此ArrayList转换回Checkbox,因为我想验证它是否已被检查.
请告诉我.



This ArrayList again i need to convert back to Checkbox, because i would like validate whether it has been checked or not.
Please advise me.

推荐答案

请提供更详细的解释,以我所理解的问题为准
我给你这个:

尝试if chkBox.checked = True then
if chkBox.state = 1 then
Please give a more detailed explanation, from whatever i understand the question
i give you this :

try if chkBox.checked = True then
or if chkBox.state = 1 then


这篇关于验证输入复选框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆