By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,665 Members | 1,952 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,665 IT Pros & Developers. It's quick & easy.

caching a XML Document and binding it to a custom control

P: n/a
Hi, this is what I'd like to do :
- Build a XML document at user's first visit of the page from a DB's data
- Cache this document so that there's no need to buit it again. The document
would stay cached as long as the user would stay logged in.
- This cached XML would be used by a custom control in several pages

I'm new to ASP.NET so I don't know if there's any feature that could do this
caching automaticaly ???
And I don't what is the ASP.NET manner to bind an object to a custom
I could something like

Sub OnPageLoad()
myControl.document = new XmlDocument("<bla>....</bla>")
End Sub
<myNS:myControl runat="server" id="1" />

But I would prefer something using properties:

Sub OnPageLoad()
myXmlDocument = new XmlDocument("<bla>....</bla>")
End Sub

<myNS:myControl runat="server" id="1" document="myXmlDocument" />

But is it possible for a control to have an object as property??

Thank you if you can help me.

Nov 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.