views:

20

answers:

0

How do I create server control that will be single instance on client side for any user controls, nested masterpages etc. Also this class should be visible by intellisense in any place where it included, so i can write javascript code in any control:

Manager.getInstance().add(someObj1);

in other user control:

Manager.getInstance().add(someObj2);

and then on msterpage footer:

$('#total_val').text(Manager.getInstance().getTotal());