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.
- 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.