PC Review


Reply
Thread Tools Rate Thread

Checkboxes not saving state

 
 
arun.hallan@gmail.com
Guest
Posts: n/a
 
      30th Aug 2006
Hi,

I have a datagrid whose datasource is a datatable which is saved to
viewstate on page_load.

I also have a cached string which handles what is shown on the
rowfilter of the dataview of this datatable.

I also have a cached string that holds the way the dataview is sorted.

Now, on my original datagrid i have a row of checkboxes added from the
property builder. The HTML behind it is : <asp:CheckBox id="chkPrice"
runat="server" AutoPostBack="true"
OnCheckedChanged="chkPrice_CheckChanged" EnableViewState="True">

As you can see when clicked, the method 'chkPrice_CheckChanged' is
meant to be called. However i dont think it is being called. I know i
it doesnt hit my breakpoint when i put one in.

The chkPrice_CheckChanged is meant to save all the checkbox values to a
hashtable so on the next page_load, the checkboxes can be filled again.

Does anyone know why this method isnt called, and/or provide some light
to the situation.

Thanks,
Arun

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Treeview with 3-state checkboxes? cowznofsky Microsoft VB .NET 4 27th Nov 2006 02:08 PM
Checkboxes not saving state arun.hallan@gmail.com Microsoft ASP .NET 5 31st Aug 2006 12:56 PM
tri state tree checkboxes Ray Wallace Microsoft ASP .NET 2 21st Oct 2005 04:51 AM
will checkboxes lose their state after postback? Jimmy Microsoft ASP .NET 3 27th Jun 2005 03:14 AM
how to keep state of checkboxes and textfields SteKel2002 Microsoft Frontpage 17 22nd Dec 2003 07:51 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:11 PM.