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

Enhancing ASP.NET Framework

Hi Everyone,

You know how we have cache objects at different levels in ASP.NET.

For example, there is one at application level (Cache) and one at user level
(Session).

How about having one at page level ? I understand it can be done manually,
but why not embed it into the Framework ?

Any ideas ?

Dmitriy.
Nov 18 '05 #1
9 1268
You could use System.Web.HttpContext.Current.Items that is kept for the HTTP
request lifetime...

Patrice

--

"Dmitriy Zakharov" <dm********@yahoo.com> a écrit dans le message de
news:OM**************@tk2msftngp13.phx.gbl...
Hi Everyone,

You know how we have cache objects at different levels in ASP.NET.

For example, there is one at application level (Cache) and one at user level (Session).

How about having one at page level ? I understand it can be done manually,
but why not embed it into the Framework ?

Any ideas ?

Dmitriy.

Nov 18 '05 #2
You may still want to explain your exact need. I don't really see what you
meant by "caching" at the page level.

IMO :
1 - for the request, you have items as previously posted
2 - for the page you can also cache the page content or fragments. Is this
what you meant ?
3 - caching objects themselves at the page level ? I don't really see what
you mean. You could use the Cache anyway using the page path.

I believe you are rather looking for 2 ?

Patrice

--

"Patrice" <no****@nowhere.com> a écrit dans le message de
news:%2****************@TK2MSFTNGP14.phx.gbl...
You could use System.Web.HttpContext.Current.Items that is kept for the HTTP request lifetime...

Patrice

--

"Dmitriy Zakharov" <dm********@yahoo.com> a écrit dans le message de
news:OM**************@tk2msftngp13.phx.gbl...
Hi Everyone,

You know how we have cache objects at different levels in ASP.NET.

For example, there is one at application level (Cache) and one at user

level
(Session).

How about having one at page level ? I understand it can be done manually, but why not embed it into the Framework ?

Any ideas ?

Dmitriy.


Nov 18 '05 #3
Yeah, maybe they could put in some hidden form field where you could cache
data in the page. They could call it ViewState.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Dmitriy Zakharov" <dm********@yahoo.com> wrote in message
news:OM**************@tk2msftngp13.phx.gbl...
Hi Everyone,

You know how we have cache objects at different levels in ASP.NET.

For example, there is one at application level (Cache) and one at user level (Session).

How about having one at page level ? I understand it can be done manually,
but why not embed it into the Framework ?

Any ideas ?

Dmitriy.

Nov 18 '05 #4
"Kevin Spencer" <ks******@takempis.com> wrote in message
news:Or*************@TK2MSFTNGP09.phx.gbl...
Yeah, maybe they could put in some hidden form field where you could cache
data in the page. They could call it ViewState.


LOL!
Nov 18 '05 #5

Would really be cool isn't it? :)

"Kevin Spencer" wrote:
Yeah, maybe they could put in some hidden form field where you could cache
data in the page. They could call it ViewState.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Dmitriy Zakharov" <dm********@yahoo.com> wrote in message
news:OM**************@tk2msftngp13.phx.gbl...
Hi Everyone,

You know how we have cache objects at different levels in ASP.NET.

For example, there is one at application level (Cache) and one at user

level
(Session).

How about having one at page level ? I understand it can be done manually,
but why not embed it into the Framework ?

Any ideas ?

Dmitriy.


Nov 18 '05 #6
I'm not looking for output caching. I'm looking to persist some page-level
state on the server.

I have a page, which is an editor for a large dataset. I prefer to keep this
dataset in server's memory.

Any suggestions, except Cache and Session objects ?
"Patrice" <no****@nowhere.com> wrote in message
news:eD**************@TK2MSFTNGP11.phx.gbl...
You may still want to explain your exact need. I don't really see what you
meant by "caching" at the page level.

IMO :
1 - for the request, you have items as previously posted
2 - for the page you can also cache the page content or fragments. Is this
what you meant ?
3 - caching objects themselves at the page level ? I don't really see what
you mean. You could use the Cache anyway using the page path.

I believe you are rather looking for 2 ?

Patrice

--

"Patrice" <no****@nowhere.com> a écrit dans le message de
news:%2****************@TK2MSFTNGP14.phx.gbl...
You could use System.Web.HttpContext.Current.Items that is kept for the

HTTP
request lifetime...

Patrice

--

"Dmitriy Zakharov" <dm********@yahoo.com> a écrit dans le message de
news:OM**************@tk2msftngp13.phx.gbl...
Hi Everyone,

You know how we have cache objects at different levels in ASP.NET.

For example, there is one at application level (Cache) and one at user

level
(Session).

How about having one at page level ? I understand it can be done manually, but why not embed it into the Framework ?

Any ideas ?

Dmitriy.



Nov 18 '05 #7
ViewState is a hidden field on a form that stores anything as BASE64
encoded. The state information is bounced between client and server.

Its a good idea to store small non-critical objects in a ViewState.

Any ideas on bigger objects or sensitive information ?

Will you store temporary balance of someone's bank account in a client-side
ViewState ?
"Kevin Spencer" <ks******@takempis.com> wrote in message
news:Or*************@TK2MSFTNGP09.phx.gbl...
Yeah, maybe they could put in some hidden form field where you could cache
data in the page. They could call it ViewState.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Dmitriy Zakharov" <dm********@yahoo.com> wrote in message
news:OM**************@tk2msftngp13.phx.gbl...
Hi Everyone,

You know how we have cache objects at different levels in ASP.NET.

For example, there is one at application level (Cache) and one at user

level
(Session).

How about having one at page level ? I understand it can be done manually, but why not embed it into the Framework ?

Any ideas ?

Dmitriy.


Nov 18 '05 #8
Hi Dmitriy:

I think the chosen terminology caused some confusion. When you asked
for a technique to "cache page-level state", we assumed you meant
information that only needed to be around for the duration of the page
request. On the server side, the logical container for this would be
the HttpContext Item collection.

What I think you are looking for is really session state caching,
because it sounds like you need the information to outlive the
lifetime of a single page request and be available the next time the
client hits a page to get the editable DataSet object. In this case,
Session and Cache are the two built in mechanisms to keep state on the
server. The difference being that with cache, you'd have to scope the
entry to a specific user by keeping a user identifier in the cache
key.

HTH,

--
Scott
http://www.OdeToCode.com

On Fri, 3 Sep 2004 16:59:42 -0400, "Dmitriy Zakharov"
<dm********@yahoo.com> wrote:
ViewState is a hidden field on a form that stores anything as BASE64
encoded. The state information is bounced between client and server.

Its a good idea to store small non-critical objects in a ViewState.

Any ideas on bigger objects or sensitive information ?

Will you store temporary balance of someone's bank account in a client-side
ViewState ?


Nov 18 '05 #9
You could also persists this to a file. Do you need such a large dataset for
edition or could the user select a smaller chunk before editing ?

What is the thing you don't like with Session or Cache ? Also the UI could
provide a point (such as "Save changes" button) at which changes are
committed in the DB allowing also to clear cached data (or to delete the
file used for caching).

IMO it would be quite hard to have this handled for you as - unlike caching
page content - the various steps will have each their own action to be
performed (loading from the database, editing while not done, deleting and
updating data once completed etc...)

Patrice

--

"Dmitriy Zakharov" <dm********@yahoo.com> a écrit dans le message de
news:uZ****************@TK2MSFTNGP15.phx.gbl...
I'm not looking for output caching. I'm looking to persist some page-level
state on the server.

I have a page, which is an editor for a large dataset. I prefer to keep this dataset in server's memory.

Any suggestions, except Cache and Session objects ?
"Patrice" <no****@nowhere.com> wrote in message
news:eD**************@TK2MSFTNGP11.phx.gbl...
You may still want to explain your exact need. I don't really see what you meant by "caching" at the page level.

IMO :
1 - for the request, you have items as previously posted
2 - for the page you can also cache the page content or fragments. Is this what you meant ?
3 - caching objects themselves at the page level ? I don't really see what you mean. You could use the Cache anyway using the page path.

I believe you are rather looking for 2 ?

Patrice

--

"Patrice" <no****@nowhere.com> a écrit dans le message de
news:%2****************@TK2MSFTNGP14.phx.gbl...
You could use System.Web.HttpContext.Current.Items that is kept for the
HTTP
request lifetime...

Patrice

--

"Dmitriy Zakharov" <dm********@yahoo.com> a écrit dans le message de
news:OM**************@tk2msftngp13.phx.gbl...
> Hi Everyone,
>
> You know how we have cache objects at different levels in ASP.NET.
>
> For example, there is one at application level (Cache) and one at

user level
> (Session).
>
> How about having one at page level ? I understand it can be done

manually,
> but why not embed it into the Framework ?
>
> Any ideas ?
>
> Dmitriy.
>
>



Nov 18 '05 #10

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

Similar topics

3
by: gizmo | last post by:
I have a stored procedure that queries a database using a Select statement with some inner joins and conditions. With over 9 million records it takes 1 min 36 sec to complete. This is too slow...
0
by: Ravindra | last post by:
Well I installed the framework provided by microsoft , the problem is I am able to activate the smart tag in the doc file but when I Click on the Show Detils option in the information bridge the...
3
by: CMan | last post by:
Hi, We are currently trying to install .Net Framework v.1.1 on a server which already has v1.0. We are receiving the following error. Error 1704.An installation for Microsoft .NET Framework...
18
by: Cameron Laird | last post by:
QOTW: "... So I started profiling the code and the slowdown was actually taking place at places where I didn't expect it." -- Guyon Mor?e (and about twenty-three thousand others) " suggestion...
9
by: Tim D | last post by:
Hi, I originally posted this as a reply to a rather old thread in dotnet.framework.general and didn't get any response. I thought it might be more relevant here; anyone got any ideas? My...
8
by: Mike9900 | last post by:
Hello, I need to make my already implemented .NET remoting system to become a web service or any system in order to be usefull over the internet. My current system uses .NET remoting and can be...
7
by: libsfan01 | last post by:
hi guys is there an extension for scriptaculous (or another library) that allows you to create more organic/natural looking movement? for example when an image slides across the screen, it...
3
dmjpro
by: dmjpro | last post by:
plz send me a good link which can clearify me how the J2EE framework works i want the details information .... plz help thanx
13
by: dancer | last post by:
I have made a new post because when I try to respond to another, I get the error, "Article Rejected -- Ill-formed message id" This is in response to the advice of Juan Libre to install Net...
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: 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: 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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.