G
Guest
Hello All,
I have a question which is pertinent to Page's lifecycle.
I declared a protected static object (global variable) whose value is set
only once when the page is loaded. Will that object's value be accessible
during consequent postbacks or is it set to null after HTML is rendered
initially?
I am assuming that it would be set to null because all the objects are
destroyed since Page object is killed after HTML has been rendered. In this
case ViewState does not make sense because it is an object and not a server
control.....correct?
Am I right or can anyone please explain me the concept?
Thanks a bunch!!!
I have a question which is pertinent to Page's lifecycle.
I declared a protected static object (global variable) whose value is set
only once when the page is loaded. Will that object's value be accessible
during consequent postbacks or is it set to null after HTML is rendered
initially?
I am assuming that it would be set to null because all the objects are
destroyed since Page object is killed after HTML has been rendered. In this
case ViewState does not make sense because it is an object and not a server
control.....correct?
Am I right or can anyone please explain me the concept?
Thanks a bunch!!!