Here's a reply to another, related post:

The subject of the post is "viewstate question", if you want to find the
thread...

HTH.


----- Original Message -----
From: "Steve C. Orr, MCSD" <Steve@Orr.net>
Newsgroups: microsoft.public.dotnet.framework.aspnet
Sent: Friday, May 16, 2003 5:23 PM
Subject: Re: viewstate question

> It's complicated. Viewstate also does some other things for you.
> For instance it ensures that some events get raised as they should.
> One example is a Changed event. If ASP.NET does not store the value of
the
> control in viewstate as it normally does, then it cannot tell if the value
> has changed, so it cannot properly raise the event for many controls.
> (Some controls like textboxes don't use viewstate for the event mechanism
so
> it isn't an issue in such cases.)
> [url]http://www.mail-archive.com/aspx@p2p.wrox.com/msg04594.html[/url]
>
> --
> I hope this helps,
> Steve C. Orr, MCSD
> [url]http://Steve.Orr.net[/url]
>
>
> "Abel" <farthumstill@hotmail.com> wrote in message
> news:ey2WF8%23GDHA.2220@TK2MSFTNGP11.phx.gbl...
> > When is it okay to turn viewstate off?
> >
> > My understanding was that viewstate is for handling/maintaining the
> > contents(state) of web form fields on postback...Does it do more than
> that?
> >
> > Thanks.
> >
> >
> >
>
>
"Jason Turim" <leisuretimeindustries@hotmail.com> wrote in message
news:uVWAZX%23SDHA.3088@TK2MSFTNGP10.phx.gbl...
> Hello All,
> I'm working in C# and I've created a set of checkboxes that adds table
rows.
> In each of the table rows there is a TextBox control.
>
> I've a couple of questions:
> 1. I'm trying to add an eventhandler to the TextChanged event:
> oTxtBox = System.EventHandler(this.HandleTextChanged);
>
> the signature for the EventHandler is:
> protected void HandleTextChanged(object sender, System.EventArgs e)
>
> if i set oTxtBox.AutoPostBack = true, the form does in fact post-back,
but
> my handler never gets called. any ideas?
>
> 2. Why do the dynamically created controls cease to exist between
> post-backs. Basically if i enter some text into the dynamically generated
> textboxes, I'd like it to propogate between post-backs. Now, I have to
> rebuild the entire table on each post-back, and the data in those
textboxes
> are lost.
>
> tia,
> jason
>
>