ViewState Problem with CheckBoxes in a DataGrid

Discussion in 'ASP .Net' started by kannadasan, Jun 25, 2003.

  1. kannadasan

    kannadasan Guest

    Hi all

    I am using Datagrid where i place checkboxes in one column
    with some other columns.The purpose is, if i select the
    checkboxes and clicks the submit buton Email has to go to
    the selected Categories. The problem here is after
    clicking submit button i found the checkboxes are not
    unchecked (cleared) even though i put
    EnableViewState="False".

    Checkboxes has to be unchecked after mails being sent.

    Thankx.
     
    kannadasan, Jun 25, 2003
    #1
    1. Advertising

  2. kannadasan

    PJ Guest

    Are you setting enableviewstate on the checkboxes or the datagrid?

    either way...
    As you iterate through the categories ( or whatever you dataitem is ) to
    find the selected items, set the checked property to false.

    ~PJ

    "kannadasan" <> wrote in message
    news:094501c33ae0$80894170$...
    > Hi all
    >
    > I am using Datagrid where i place checkboxes in one column
    > with some other columns.The purpose is, if i select the
    > checkboxes and clicks the submit buton Email has to go to
    > the selected Categories. The problem here is after
    > clicking submit button i found the checkboxes are not
    > unchecked (cleared) even though i put
    > EnableViewState="False".
    >
    > Checkboxes has to be unchecked after mails being sent.
    >
    > Thankx.
     
    PJ, Jun 25, 2003
    #2
    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. ujjc001
    Replies:
    0
    Views:
    1,384
    ujjc001
    Jul 27, 2005
  2. =?Utf-8?B?RGVtZXRyaQ==?=

    Repeater & CheckBoxes w/o ViewState

    =?Utf-8?B?RGVtZXRyaQ==?=, Oct 10, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    563
    =?Utf-8?B?RGVtZXRyaQ==?=
    Oct 10, 2006
  3. Scott
    Replies:
    2
    Views:
    405
    Scott
    Aug 9, 2007
  4. Anton Sommer

    disable viewstate of dynamically created checkboxes

    Anton Sommer, Sep 29, 2003, in forum: ASP .Net Building Controls
    Replies:
    1
    Views:
    262
    Teemu Keiski
    Oct 5, 2003
  5. REB

    Checkboxes in a Datagrid problem

    REB, Mar 1, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    143
Loading...

Share This Page