CheckBoxList items loose their Selected property in .NET 2.0

Discussion in 'ASP .Net' started by Piotr Strycharz, Oct 18, 2006.

  1. 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.
     
    Piotr Strycharz, Oct 18, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?UGV0ZXI=?=

    CheckBoxList contorl's selected items, problem

    =?Utf-8?B?UGV0ZXI=?=, Apr 6, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    570
    =?Utf-8?B?UGV0ZXI=?=
    Apr 6, 2004
  2. Boris
    Replies:
    1
    Views:
    2,921
    binusworld
    Sep 30, 2008
  3. Replies:
    1
    Views:
    740
    Damien
    May 24, 2005
  4. Patrick.O.Ige
    Replies:
    5
    Views:
    19,115
    Patrick.O.Ige
    Jun 19, 2005
  5. Bart Van Hemelen
    Replies:
    2
    Views:
    4,674
    Bart Van Hemelen
    Sep 4, 2006
Loading...

Share This Page