It's not a known problem, it's a known feature of all web browsers and the
way checkboxes in forms work. If they're not checked, they don't go into the
forms collection (because there's no such thing as an off value in the
<input> tag, so checked puts in the value and unchecked doesn't put in
anything).

Adam..

> -----Original Message-----
> From: Unmoderated discussion of advanced .NET topics.
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Baudouin, Andrew
> Sent: Wednesday, April 13, 2005 4:03 PM
> To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
> Subject: [ADVANCED-DOTNET] [ASP.Net] Unchecked checkboxes do
> not appear in the Request.Form collection?
>
> My company has an abstracted search program that we use to
> automatically create search criteria pages from DataTables.
> The program creates a set of controls for each DataColumn
> with the appropriate ExtendedProperty set (label, dropdown
> list containing equals, starts with, greater than, less than,
> etc.. and another control depending on the data type of the column.)
>
>
>
> Previously we had not implemented Boolean (checkbox) search.
> I am now attempting to implement this and am finding that
> when the checkbox is unchecked, its value does not show up in
> the Request.Form collection ie.
> (id=value).  When it is checked it comes back with (ID=ON).
> Is this a known problem?

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to