[请求] Computer Web Programming Solution

吾昆

新手上路
注册
2002-10-03
消息
23
荣誉分数
0
声望点数
0
A user administration web form shows all the users with updatable fields and a series of checkboxes at the last column indicating whether or not to delete individual users.

XSL file dictates that all the checkboxes are named the same (chkDelete). When admins submit this form, I need to parse all the form data into an XML string such as follows(used in a function):

For i =1 to Request.Form.Count
'create field element

For j = 1 to Request.Form(i).Count 'Process multiple value controls
'create field_value element and append the actual data entry
Next
Next

I would use this XML string as passing parameter to call stored procedure to do the actual execution.

The problem is the checkbox data entry portion. The web browser default behavior is to only allow CHECKED value retrieval (which is ON). I don't seem to be able to retrieve all the NON-CHECKED (OFF) values.

I would really appreciate any ideas to solve this bugging problem (Attention: I have to use the UI - allow admins to update/delete multiple user records at one shot)!
 
didn't know that checkboxes are not passed if not checked. If that's the case, then null means not checked then.
 
When you parse the parameters, make the checkbox name and value pairs to be an associated arrays. That may help you to group the checked or unchecked ones.
 
后退
顶部