Home All Groups Group Topic Archive Search About
Author
20 Dec 2005 10:31 AM
Brayan__
I just learn that there is no ViewState for System.Web.UI.WebControls.Table   :eek:
I'm mad cos I need it  :mad:
Table control has a property EnableViewState but it isn't working! Why ?  :confused:
Any idea how it's work in .NET 2.0 ? -- Brayan__ ------------------------------------------------------------------------ Brayan__'s Profile: http://www.hightechtalks.com/m556 View this thread: http://www.hightechtalks.com/t2313171

Author
21 Dec 2005 8:10 PM
Teemu Keiski
Hi,

Can you further clarify what you mean?

Note that TableCells and TableRows are controls themselves, so they are not
kept in ViewState, and you'd need to instantiate and add them to Table on
every request, if that's the problem (e.g dynamically created rows & cells
are not kept over postbacks)

Table has viewstate, but it takes care of state of the controls, but not
control istances themselves

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke


Show quoteHide quote
"Brayan__" <Brayan__.20c***@no-mx.forums.yourdomain.com.au> wrote in message
news:Brayan__.20c4xy@no-mx.forums.yourdomain.com.au...
>
> I just learn that there is no ViewState for
> System.Web.UI.WebControls.Table   :eek:
> I'm mad cos I need it  :mad:
> Table control has a property EnableViewState but it isn't working! Why
> ?  :confused:
> Any idea how it's work in .NET 2.0 ?
>
>
> --
> Brayan__
> ------------------------------------------------------------------------
> Brayan__'s Profile: http://www.hightechtalks.com/m556
> View this thread: http://www.hightechtalks.com/t2313171
>
Author
3 Jan 2006 9:41 AM
Brayan__
> Note that TableCells and TableRows are controls themselves, so they are > not
> kept in ViewState, and you'd need to instantiate and add them to Table > on
> every request, if that's the problem (e.g dynamically created rows & > cells
> are not kept over postbacks)

Yes this is the problem.
I add rows and cells dynamically and I can't use DataGrid and I need to add them on every postback  :mad: -- Brayan__ ------------------------------------------------------------------------ Brayan__'s Profile: http://www.hightechtalks.com/m556 View this thread: http://www.hightechtalks.com/t2313171