Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Usercontrol loading question

Reply
Thread Tools

Usercontrol loading question

 
 
John
Guest
Posts: n/a
 
      07-02-2003
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.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
loading usercontrol from usercontrol acadam ASP .Net 2 06-28-2007 07:38 AM
accessing usercontrol from another usercontrol Phl ASP .Net 2 11-18-2004 07:33 PM
Access a control inside an usercontrol from another control inside another usercontrol nail ASP .Net 0 09-15-2004 03:55 PM
Can we use a usercontrol inside a usercontrol Rajesh Tiwari ASP .Net 0 08-12-2003 03:56 PM
Use LoadControl to load a usercontrol but the webcontrol in the usercontrol can not AutoPostBack huobazi ASP .Net 1 07-03-2003 03:14 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57