Building Controls Question

Topics: Controls
Oct 14, 2007 at 8:31 PM
Hello,

I'm building a custom control that reads an XML file FTPed to my server of the 5 most recently played tracks in Windows Media Player (I plan on sharing this too). I'm not familar with the core of BE and I've never been a big developer (mostly hobby). So, I started out by copying the PageList control and building what I needed.

The control works great, however I'm finding that the application is caching the XML file and doesn't update correctly. I'm figuring it has something to do with the HTML/SyncRoot - but again, I'm not overly familar with the core of BE. Is if this is the case, is there a way that I can strip out the code that builds the HtmlGenericControl code that's in there but get rid of the caching? (again, not a hardcore developer and a lot of what I'm seeing is new to me).

Thanks in advance for any suggestions. I can post/email code too if that helps.

Joshua
Coordinator
Oct 15, 2007 at 3:33 PM
In the "private string Html" getter, there are to "If" checks. When I needed page control do not cache (I used it as dynamic menu) I simply removed both checks and it worked just fine, no more caching.
Oct 15, 2007 at 4:55 PM
That worked perfectly. Thanks a ton! :)