Click here to Skip to main content
15,879,096 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello everybody,

I have a custom control (a shopping cart control) on a master page from which inherit some pages. The control has a total price and number of items information as labels that should be, of course, up to date .
My question is : on each of the pages that inherited from my master page, is there a new instance of the control or is only one for all pages ? And if it is only one instance, it is enough to update only the master page control? If not how could I make the control to update on 1 second interval without Ajax ?
( I mean if I could do the trick with a timer tick event )
Posted

1 solution

It's a new instance for each page, so yes you can get away with updating it during Page_Load for the codebehind for the master page, or by binding.
(Assuming that you are not using UpdatePanels or any other ajax related technologies)

Regards
Espen Harlinn
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900