J
John
Hi all,
How does a user control differentiate between the first time it has been
loaded into a page and subsequent times?
I have a situation where a user control will load, and I need to populate a
datagrid but not necessarily on every subsequent page postback and because
the user control is loaded dynamically, the load event runs every time so I
can get viewstate. The problem is that I can't use the isPostBack method of
the page because that could already be true when the user control is loaded
into it.
Regards
John.
How does a user control differentiate between the first time it has been
loaded into a page and subsequent times?
I have a situation where a user control will load, and I need to populate a
datagrid but not necessarily on every subsequent page postback and because
the user control is loaded dynamically, the load event runs every time so I
can get viewstate. The problem is that I can't use the isPostBack method of
the page because that could already be true when the user control is loaded
into it.
Regards
John.