deepPowdah
asked on
VBScript Server Side Code to read checkbox.ID
I generate a dynamic set of checkboxes in Classsic ASP
<input type="checkbox" name="cbx1" id="cbx1" value = "abc" >
<input type="checkbox" name="cbx2" id="cbx2" value = "def" >
<input type="checkbox" name="cbx3" id="cbx3" value = "ghi" >
When the ASP Page is posted, I need to loop thru the checkboxes and read their ids in VBScript on the server.
For R = 1 to n
set myCbx = request.form("cbx" & r)
myID = myCbx.ID
Next
However the system doesn't like the myID = myCbx.ID line. Is there any way to read the ID of a checkbox if it is not checked?
Thanks for your help
<input type="checkbox" name="cbx1" id="cbx1" value = "abc" >
<input type="checkbox" name="cbx2" id="cbx2" value = "def" >
<input type="checkbox" name="cbx3" id="cbx3" value = "ghi" >
When the ASP Page is posted, I need to loop thru the checkboxes and read their ids in VBScript on the server.
For R = 1 to n
set myCbx = request.form("cbx" & r)
myID = myCbx.ID
Next
However the system doesn't like the myID = myCbx.ID line. Is there any way to read the ID of a checkbox if it is not checked?
Thanks for your help
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER