Click here to Skip to main content
15,896,730 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
VB
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


VB
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


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.
Posted
Updated 28-May-12 10:35am
v2
Comments
db7uk 28-May-12 18:05pm    
I know this is slightly off topic but would a gridview with a checkbox column not be better. You could bind directly to your datasource and then ascertain checked values?

1 solution

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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900