Thanks for your concern. I only place partial codes below.
The statement of the variable which can be tracked in view state is :
public string time
{
get { return this.ViewState["__timeStamp"].ToString(); }
set { this.ViewState["__timeStamp"] = value; }
}
In the event handler that does with post back event is::
//do something to save a record of table
.........................
// get the timestamp and convert it to string
................................
// then save the value of timestamp
this.time = "xxxxxxxxxxx".//new time stamp after saving successfully
Actually I implement the IPostbackEventHandler for my own page class
inherited from System.web.ui.page. and the javascript for post back is
like:
__doPostBack("_page","");
As it did the trick, I don't think it is important to list those codes in
order to firgure out the problem. One of my doubt is: when
IPostbackEventHandler is implmented in my own page class,Is there a
difference
from those case in which IPostbackEventHandler is implemented in other
server controls. Another question is : As processing post back event always
happens behind loading view state,why is the variable "time" gonna be
restored to previous value ?
Hope these simple code can help you to solve out my question. Thanks.
Crespo
"Mark Rae" <ma**@markNOSPAMrae.net????
news:%2****************@TK2MSFTNGP06.phx.gbl...
"crespo" <wu******@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>Could anyone hele me?
Not without seeing the code...
--
http://www.markrae.net