Usercontrol loading question

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top