StoykinButNotKrstakn
Programmer
I have a situation where I want to get a team ID that has been modified. The user is provided with a list of teams and then a radio group showing assigned/unassigned, and then a submit value. Internally I have a hidden checkbox for each team holding the groupname "TeamID" and the value holding the actual team identifier:
<input type="checkbox" name="TeamID" value="<%=TeamInfo("teamid"%>" style="visibility: hidden">
I am pursuing it this way so I can retrieve these values more easily on the submission of the form:
dim Item
for each item in Request.Querystring("TeamID"
' Do OP
next
When a user selects the "Assign/Unassign" in the radio box, I want to check the corresponding checkbox so I know the user has modified this team. I have an onclick even that passes the team ID to a subroutine.
At this point I stumble. How do I set the checkbox (e.g. Document.TheForm.TeamID.Checked = "True" ) where the checkbox value matches the TeamID sent?
I've tried using the Eval function, but I can't seem to get it working correctly.
Thanks
<input type="checkbox" name="TeamID" value="<%=TeamInfo("teamid"%>" style="visibility: hidden">
I am pursuing it this way so I can retrieve these values more easily on the submission of the form:
dim Item
for each item in Request.Querystring("TeamID"
' Do OP
next
When a user selects the "Assign/Unassign" in the radio box, I want to check the corresponding checkbox so I know the user has modified this team. I have an onclick even that passes the team ID to a subroutine.
At this point I stumble. How do I set the checkbox (e.g. Document.TheForm.TeamID.Checked = "True" ) where the checkbox value matches the TeamID sent?
I've tried using the Eval function, but I can't seem to get it working correctly.
Thanks