473,386 Members | 1,706 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

caching a XML document and binding it to a custom control

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.


Nov 18 '05 #1
0 947

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Simon Barbour | last post by:
Hi all, Tearing my hair out on this one so hopefully somebody can help. I have written a custom control to represent a button on a touchscreen EPoS (electronic point of sale) peice of...
1
by: Antero | last post by:
I'm desperate! :-/. I'm desperately trying to bind to objects together to share same data and to display it in a windows forms. I'm trying to bind an custom object to custom control property. I...
3
by: Janaka | last post by:
Hi All, I'm having a problem with Page Output caching on a page that contains a DataGrid. Basically the page pulls up some data for sales information from the DB. Some of this has to be...
0
by: Jeff Schaefer | last post by:
What I want to know is this: Is it possible to programmatically manipulate a custom property of a user control for which <%@ OutputCache ... > has been included? If so, then how? My brief code is...
0
by: Henri | last post by:
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...
19
by: Simon Verona | last post by:
I'm not sure if I'm going down the correct route... I have a class which exposes a number of properties of an object (in this case the object represents a customer). Can I then use this...
0
by: Jonathan Carter | last post by:
I was recently searching for a solution on how to perform an output caching-like solution on a custom control. Obviously the OutputCache directive wasn't available, and I tried using the Response's...
3
by: Charles Law | last post by:
Word has a property BuiltinDocumentProperties, which (in VBA) returns a DocumentProperties collection. In VB.NET, using Word automation, it returns a _ComObject. I have tried to cast this to...
9
by: =?Utf-8?B?VGVycnk=?= | last post by:
Think it is great the way that you can set up a datsource, value member, and display member for a combobox, and map a 'code' to a 'description' and back again by binding the combobox to a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.