Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > CheckBoxList items loose their Selected property in .NET 2.0

Reply
Thread Tools

CheckBoxList items loose their Selected property in .NET 2.0

 
 
Piotr Strycharz
Guest
Posts: n/a
 
      10-18-2006
Hi,

Here is my situation: I have disabled CheckBoxList. This CheckBoxList
(actually: all of the checkboxes) is being enabled by user using javascript
code. Than - user can select some of the checkboxes and post the form.

In .NET 1.1 it worked as expected: when control's state was set to enable -
the selected checkboxes had their Selected property set to true. However in
..NET 2.0 this does not work - althought Request.Form collection still
returns selected checkboxes, their Selected value is set to false.

Other controls that have the same strange behavior are: CheckBox and
ListBox. Strangely: RadioButtonList - after enabling - return its value.
Also - other single controls (textboxes, etc..).

Any help with this issue?

Regards.
Piotr.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Access selected items' (ListItems) VALUES of dynamically generated CheckBoxList on postBack Boris ASP .Net 1 09-30-2008 11:08 AM
Looping through CheckBoxList items doesn't pick up selected ones when items were disabled Bart Van Hemelen ASP .Net 2 09-04-2006 08:35 AM
How to get Selected item in a Databinded CheckBoxList when CheckBoxlist is in a DataList? Patrick.O.Ige ASP .Net 5 06-19-2005 06:11 AM
Counting selected items on CheckBoxList rbscheer@my-deja.com ASP .Net 1 05-24-2005 07:06 AM
CheckBoxList contorl's selected items, problem =?Utf-8?B?UGV0ZXI=?= ASP .Net 1 04-06-2004 09:51 AM



Advertisments