retaining info after postback

hi, i'm creating a table with rows on runtime.
the rows are added through some option on the page (not from db).

but when i do a postback a miss the info.
how could i retain that info?

please help!
Gabriel Pineda [ Di, 08 April 2008 18:29 ] [ ID #1937797 ]

Re: retaining info after postback

"Gabriel Pineda" <gabrielpineda2001 [at] hotmail.com> wrote in message
news:OU3TrWZmIHA.4208 [at] TK2MSFTNGP02.phx.gbl...

> hi, i'm creating a table with rows on runtime.
> the rows are added through some option on the page (not from db).
>
> but when i do a postback a miss the info.
> how could i retain that info?

Dynamic tables are not maintained across postback - they need to be
recreated each time the page loads...


--
Mark Rae
ASP.NET MVP
http://www.markrae.net
mark [ Di, 08 April 2008 18:32 ] [ ID #1937798 ]

RE: retaining info after postback

Store the data in Session State (if user specific, otherwise Cache state) and
recreate the table and data on postback from what you stored.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short Urls & more: http://ittyurl.net


"Gabriel Pineda" wrote:

> hi, i'm creating a table with rows on runtime.
> the rows are added through some option on the page (not from db).
>
> but when i do a postback a miss the info.
> how could i retain that info?
>
> please help!
>
>
>
pbromberg [ Di, 08 April 2008 21:28 ] [ ID #1937824 ]
Microsoft » microsoft.public.dotnet.framework.aspnet » retaining info after postback

Vorheriges Thema: DataGrid in DataList in UpdatePanel
Nächstes Thema: aspnet from http to https