Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Nested User Control not Refreshing

Status
Not open for further replies.

ben1234zz

MIS
May 12, 2008
71
GB
Hi

We have a shopping cart with a basket on the side of the page.

The ASPX page has a 'Loader' user control which detects if there is anything in the shopping basket in the Page_Init, if there is it loads one user control if not it loads another.

When you add something into the basket it appears to be one step behind, only when the user adds a second item will it show the basket, but will only show the first item.

Any thoughts would be much appreciated.

Thanks
B
 
I found the problem, the issue was the order in which things fire:

Page Load comes before the postback event, therefore I would always be one step behind.

Added an AJAX UpdatePanel which resolved that issue...

however at the moment the loading code is in the UpdatePanel PreRender event, which is slowing the whole page loading process, can I make this asyncronous so that the page loads and then the basket later?

Thanks
B
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top