|
-
Feb 15th, 2005, 07:19 AM
#1
Thread Starter
Frenzied Member
User Controls order of execution *RESOLVED*
I have two User Controls on a page - on contains details of a shopping basket (just number of items and total cost) the other contains details of a product.
The shopping basket user control updates on Page_Load however when a new product is added to the basket through a click event in the product user control the shopping basket doesn't display this addition immediately.
It seems the shopping basket Page_Load method fires before the product click event and hence the shopping basket doesn't show the new product added until the page is posted again.
I'm confused because surely the Page_Loads should be the last to fire?
Help!
DJ
Last edited by dj4uk; Feb 15th, 2005 at 09:58 AM.
Reason: Resolved
-
Feb 15th, 2005, 09:57 AM
#2
Thread Starter
Frenzied Member
Re: User Controls order of execution
I've changed Page_Load to Page_PreRender and it works fine now.
I had the order of execution all the wrong way.
DJ
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|