473,385 Members | 1,372 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,385 software developers and data experts.

Page caching half-way-house conundrum...

Hi folks, I'm using C#, ASP.net and the .Net Framework 1.1 with VS 2003.

A quick overview of what I'm trying to do:
I have a windows authentication using Intranet application that has manager
names in a dropdown. A manager opens their browser clicks on the right
bookmark and and can choose their own name and then proceed to see their
portfolio of clients.
The reality is though that a there isn't a one-to-one mapping between people
in the real world and the logical manager name. A manager has assistants and
more than one of them may log on, choose their manager's name and then view
the portfolio.

the problem
I wish to cache the page output so that if more than one assistant chooses
their same manager the pages will be cached, but I can't rely on the whole
page being cached because I show who is logged into the application in a
little <divat the top left side of the page, in other words if I didn't
want to show who is logged in I could just cache the entire page and that
would be a simple directive, but I somehow want to cache the data 'per
manager' chosen and still be able to show who is logged in..
I have a sense that I may need to use .ascx user controls for the data etc..
or play around with the 'vary by' clauses

any thoughts?, any articles?

Regards and many thanks in advance
CharlesA
Jul 17 '06 #1
2 1004
Just put the stuff you want cached in an UserControl and cache it.

Karl

--
http://www.openmymind.net/
http://www.codebetter.com/
"CharlesA" <Ch******@discussions.microsoft.comwrote in message
news:1B**********************************@microsof t.com...
Hi folks, I'm using C#, ASP.net and the .Net Framework 1.1 with VS 2003.

A quick overview of what I'm trying to do:
I have a windows authentication using Intranet application that has
manager
names in a dropdown. A manager opens their browser clicks on the right
bookmark and and can choose their own name and then proceed to see their
portfolio of clients.
The reality is though that a there isn't a one-to-one mapping between
people
in the real world and the logical manager name. A manager has assistants
and
more than one of them may log on, choose their manager's name and then
view
the portfolio.

the problem
I wish to cache the page output so that if more than one assistant chooses
their same manager the pages will be cached, but I can't rely on the whole
page being cached because I show who is logged into the application in a
little <divat the top left side of the page, in other words if I didn't
want to show who is logged in I could just cache the entire page and that
would be a simple directive, but I somehow want to cache the data 'per
manager' chosen and still be able to show who is logged in..
I have a sense that I may need to use .ascx user controls for the data
etc..
or play around with the 'vary by' clauses

any thoughts?, any articles?

Regards and many thanks in advance
CharlesA

Jul 17 '06 #2
Thanks for that Karl!
Regards,
CharlesA
Jul 17 '06 #3

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

Similar topics

5
by: R. Ian Lee | last post by:
I have an ASP.NET page that spawns a popup window using javascript's window.open. This works fine. It pops up, you enter some data, press save and everything saves as it should. But, if you...
1
by: Keith Chadwick | last post by:
How do I prevent caching on a page. I tried <%@ OutputCache Duration="1" VaryByParam="None" %> but that does not appear to be working. The content of the page is generated by the loading of 2 xsl...
4
by: Captain Chaos | last post by:
Is it Possible to Cache Pictures JPG/BMP on the Client Browser ? The other Elements of the Page should not being cached because they change. Is it possible to cache parts of a page on the...
10
by: Jon Maz | last post by:
Hi, My goal is to take the entire html/javascript stream spat out by .aspx pages and save them as simple strings in a database (for caching purposes). I'm not sure how I can get hold of this...
7
by: moondaddy | last post by:
I have a products catalogue that I'm putting online and there will be between 20 to 50 different pages of products. Each page contains a datagrid of products for a given category. However, the...
3
by: moondaddy | last post by:
I have a site where I have only one page and lots of user controls. Rather than passing parameters into the page (mysite/default.aspx?MenuID=123), I pass in a url like this...
1
by: Anonieko | last post by:
Query: How to display progress bar for long running page Answer: Yet another solution. REFERENCE: http://www.eggheadcafe.com/articles/20050108.asp My only regret is that when click the...
3
by: StevePBurgess | last post by:
Hi all, I am using Magpie RSS and want to change the Caching period to half an hour instead of one hour. I have modified the line in RSS_CACHE.INC so that it reads: var $MAX_AGE = 900; ...
3
by: =?Utf-8?B?cHJhZGVlcF9UUA==?= | last post by:
Hi All, Can anyone please explain me why I am not able to disable Browser caching in ASP.net by writing the following code Response.Buffer = true; Response.ExpiresAbsolute =...
9
by: jehugaleahsa | last post by:
Hello: I am writing a cute little class that will cache queries against a database. Currently, I am implementing this by storing the command text, parameter values and generated DataRows. ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: 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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.