Re: postback resetting checkbox state



Don't rebind the data in Page_Load every time. Use, for example, a If Not
Page.IsPostBack Then and only bind then. The viewstate is reconstituted
prior to Page_Load, so you will overwrite every time if you bind there.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

*************************************************
| Think outside the box!
|
*************************************************
"Chris" <coz1978@xxxxxxxxx> wrote in message
news:15830bb1-9c0d-4ce4-bd99-1bdac2bec778@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I've got a gridview with a column of checkboxes. If I check off any
number of them, and perform a postback, they all go back to being
unchecked. What options do I have for getting around this?


.



Relevant Pages

  • Re: Bind 9.2.X exploit???
    ... All versions of the stub resolver library from BIND 8 prior to 8.2.6. ... > if anyone wanna test it I can send the source code. ... > For more information on this free incident handling, management ...
    (Incidents)
  • Problem with named/bind 9.3.1 (FC4)(exiting (due to assertion failure))
    ... After receiving this error message on my logfile I found on google that this was a problem with bind versions prior to 9.2.1. ...
    (Fedora)
  • Re: Multiple answers in a form
    ... Prior to Access 2007, it was not possible to bind a ... When I switch to a new record the selected items in the list ... disappear from the previous record. ...
    (microsoft.public.access.forms)
  • Buffer overflow and DoS i BIND
    ... For those running BIND on Windows: ... All versions of BIND 4 from 4.8.1 prior to BIND 4.9.9 are vulnerable. ...
    (NT-Bugtraq)
  • Re: adding rows
    ... you will need to bind on every request, or you can try putting the bind code ... early in the pipeline so that it can participate in viewstate. ... For every row in the database I need two rows in the grid. ... >>> them each page request. ...
    (microsoft.public.dotnet.framework.aspnet.datagridcontrol)