G
Guest
Hi All,
I have this basic doubt.
Consider the following piece of code
class MyClass
{
XmlDocument objXmlDoc;
void page_load ()
{
if ( ! IsPostBack )
{
objXmlDoc = new XmlDocument ( );
}
}
}
Now my doubt is whenever the page is refreshed, is a new object created, I
mean to say is the statement XmlDocument objXmlDoc executed every time I
refresh or just the page_load function is executed.
Expecting replies at the earliest.
Thanks
GS.
I have this basic doubt.
Consider the following piece of code
class MyClass
{
XmlDocument objXmlDoc;
void page_load ()
{
if ( ! IsPostBack )
{
objXmlDoc = new XmlDocument ( );
}
}
}
Now my doubt is whenever the page is refreshed, is a new object created, I
mean to say is the statement XmlDocument objXmlDoc executed every time I
refresh or just the page_load function is executed.
Expecting replies at the earliest.
Thanks
GS.