Thanks a lot! it worked :)
Another small question - If I understand correctly, ViewState saves values
of all objects that have runat=server. How can I isolate a certain object
(let's say an asp:TextBox) that I have on my ASPX page in order to receive
it's value from ViewState? Can I or can't?
And also may be an object/value added/removed/edited to ViewState from
JavaScript??
This one would solve a great problem I have with my project. Thank in
advance.
--
With the best wishes,
Shaul Feldman
"Jose Marcenaro" <jo***@nospam.da-vinci.com.ar> wrote in message
news:OM**************@TK2MSFTNGP09.phx.gbl...
Just do this (C# syntax)
ViewState["RowsSent"] = n;
and then
n = ViewState["RowsSent"];
Regards
Jose Marcenaro
"Shaul Feldman" <sf******@writeme.com> escribió en el mensaje
news:e8*************@TK2MSFTNGP11.phx.gbl... The question is quiet difficult to explain -
I need to give the users ability to append to a table rows, that means I
have to reconstruct it every time there's a PostBack i nOnInit event.
The question how can I remember how many rows were sent to client before the
last submit? I've read a little bit about viewstate and tried to make a
hidden label (with runat=server property), but couldn't retrieve its'
value fro ViewState. Please help.
Thank you a lot.
--
With the best wishes,
Shaul Feldman