Thursday, March 22, 2012

Thoughts please

I'm struggling to get my head round this problem at the moment so'd appreciate and guidance.

I have a menu control that I've decided to store in application cache because I don't need it continually getting re-created. I have now installed the Control Adapters classes. I now have a problem in that whilst the menu gets recreated and rendered as expected, the oninit of the control adapter function that creates the javascript does not(meaning the menu dropdowns don't work) because the control already exists in memory I guess. So any ideas on a good way to overcome this problem?

I'll post up any more info if that's not clear?

thanks

I don't really see the point behind explicitly storing the menu in the application cache, asp.net apps seem to store things in cache unless you explicitly tell it not to.

Hmmm, I maybe getting confused or making this a bit too complicated;

My main reasoning is that the Menu can appear on any aspx page and can appear anywhere in the pages content(it's user defined). By storing it in cache I can call the menus Render method and have it created whenever it has been including by the user. It's not in a static place on the form. This all seems to work btw, it's just not calling OnInit which the control adapter relies on

if that makes sense


This is now fixed but thanks tf for the reply

0 comments:

Post a Comment