caching a XML Document and binding it to a custom control

H

Henri

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
control.
I could something like

<script...>
Sub OnPageLoad()
myControl.document = new XmlDocument("<bla>....</bla>")
End Sub
</script>
....
<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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top