retaining info after postback

retaining info after postback

am 08.04.2008 18:29:04 von Gabriel Pineda

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!

Re: retaining info after postback

am 08.04.2008 18:32:47 von mark

"Gabriel Pineda" wrote in message
news:OU3TrWZmIHA.4208@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

RE: retaining info after postback

am 08.04.2008 21:28:00 von pbromberg

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!
>
>
>