Usercontrol loading question

Discussion in 'ASP .Net' started by John, Jul 2, 2003.

  1. John

    John Guest

    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.
    John, Jul 2, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. huobazi
    Replies:
    1
    Views:
    681
    David Waz...
    Jul 3, 2003
  2. Rajesh Tiwari

    Can we use a usercontrol inside a usercontrol

    Rajesh Tiwari, Aug 12, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    409
    Rajesh Tiwari
    Aug 12, 2003
  3. nail
    Replies:
    0
    Views:
    1,535
  4. Phl
    Replies:
    2
    Views:
    519
    =?Utf-8?B?VGFtcGEgLk5FVCBLb2Rlcg==?=
    Nov 18, 2004
  5. acadam
    Replies:
    2
    Views:
    430
    acadam
    Jun 28, 2007
Loading...

Share This Page