473,408 Members | 2,734 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,408 software developers and data experts.

about the duwamish 7.0

In PageBase.cs file,

private const String KEY_CACHECART = "Cache:ShoppingCart:";
..
..
..
..
Cart returnValue = (Cart)(Session[KEY_CACHECART]);
meaning ?
any help or document about this ?
Nov 19 '05 #1
10 1057
Hi,

The code is just storing the value of Cart object in the session
provided by asp.net
Now when you store the value in the session you need a key with which
you can identify it uniquely.
Also when you get the value from the session it is of "Object" type
which you have to cast into the object with which you stored that in
the session.

So while storing the value, the code should look like:

Session[KEY_CACHECART] = objCart;

where objCart is object of Cart type. So while retrieving it being cast
back to Cart
HTH,
Regards,
Angrez

Nov 19 '05 #2
This means that the object stored in the session key "Cach:ShoppingCart:" is
explicitly casted to an object of type Cart.

Gabriel Lozano-Morán
Nov 19 '05 #3
Cach meaning ?

"Gabriel Lozano-Morán" <ga************@no-spam.com> дÈëÏûÏ¢
news:eJ**************@TK2MSFTNGP14.phx.gbl...
This means that the object stored in the session key "Cach:ShoppingCart:" is explicitly casted to an object of type Cart.

Gabriel Lozano-Morán

Nov 19 '05 #4
Cach meaning ?

"Gabriel Lozano-Morán" <ga************@no-spam.com> дÈëÏûÏ¢
news:eJ**************@TK2MSFTNGP14.phx.gbl...
This means that the object stored in the session key "Cach:ShoppingCart:" is explicitly casted to an object of type Cart.

Gabriel Lozano-Morán

Nov 19 '05 #5
Session,and the cach ..?
Put the session's value into cach ?
<si**********@rediffmail.com> ????
news:11**********************@o13g2000cwo.googlegr oups.com...
Hi,

The code is just storing the value of Cart object in the session
provided by asp.net
Now when you store the value in the session you need a key with which
you can identify it uniquely.
Also when you get the value from the session it is of "Object" type
which you have to cast into the object with which you stored that in
the session.

So while storing the value, the code should look like:

Session[KEY_CACHECART] = objCart;

where objCart is object of Cart type. So while retrieving it being cast
back to Cart
HTH,
Regards,
Angrez

Nov 19 '05 #6
Session,and the cach ..?
Put the session's value into cach ?
<si**********@rediffmail.com> ????
news:11**********************@o13g2000cwo.googlegr oups.com...
Hi,

The code is just storing the value of Cart object in the session
provided by asp.net
Now when you store the value in the session you need a key with which
you can identify it uniquely.
Also when you get the value from the session it is of "Object" type
which you have to cast into the object with which you stored that in
the session.

So while storing the value, the code should look like:

Session[KEY_CACHECART] = objCart;

where objCart is object of Cart type. So while retrieving it being cast
back to Cart
HTH,
Regards,
Angrez

Nov 19 '05 #7
"Cache:ShoppingCart:" is just a name they give the key. It could have been
Cache_ShoppingCart_ or CacheShoppingCart or whatever. But I assume that the
name is a concatenation of strings.

Gabriel Lozano-Morán
Software Engineer
Sogeti
"Kylin" <w0**@sohu.com> wrote in message
news:ug**************@TK2MSFTNGP14.phx.gbl...
Cach meaning ?

"Gabriel Lozano-Morán" <ga************@no-spam.com> дÈëÏûÏ¢
news:eJ**************@TK2MSFTNGP14.phx.gbl...
This means that the object stored in the session key "Cach:ShoppingCart:"

is
explicitly casted to an object of type Cart.

Gabriel Lozano-Morán


Nov 19 '05 #8
"Cache:ShoppingCart:" is just a name they give the key. It could have been
Cache_ShoppingCart_ or CacheShoppingCart or whatever. But I assume that the
name is a concatenation of strings.

Gabriel Lozano-Morán
Software Engineer
Sogeti
"Kylin" <w0**@sohu.com> wrote in message
news:ug**************@TK2MSFTNGP14.phx.gbl...
Cach meaning ?

"Gabriel Lozano-Morán" <ga************@no-spam.com> дÈëÏûÏ¢
news:eJ**************@TK2MSFTNGP14.phx.gbl...
This means that the object stored in the session key "Cach:ShoppingCart:"

is
explicitly casted to an object of type Cart.

Gabriel Lozano-Morán


Nov 19 '05 #9
Ok..I see why you are so confused. You don't know what a cache is and how
is it used in asp.net. Take a look at this:

http://www.dotnetjunkies.com/quickst...goverview.aspx

--
TDAVISJR
aka - Tampa.NET Koder
"Kylin" <w0**@sohu.com> wrote in message
news:en**************@tk2msftngp13.phx.gbl...
Session,and the cach ..?
Put the session's value into cach ?
<si**********@rediffmail.com> ????
news:11**********************@o13g2000cwo.googlegr oups.com...
Hi,

The code is just storing the value of Cart object in the session
provided by asp.net
Now when you store the value in the session you need a key with which
you can identify it uniquely.
Also when you get the value from the session it is of "Object" type
which you have to cast into the object with which you stored that in
the session.

So while storing the value, the code should look like:

Session[KEY_CACHECART] = objCart;

where objCart is object of Cart type. So while retrieving it being cast
back to Cart
HTH,
Regards,
Angrez


Nov 19 '05 #10
Ok..I see why you are so confused. You don't know what a cache is and how
is it used in asp.net. Take a look at this:

http://www.dotnetjunkies.com/quickst...goverview.aspx

--
TDAVISJR
aka - Tampa.NET Koder
"Kylin" <w0**@sohu.com> wrote in message
news:en**************@tk2msftngp13.phx.gbl...
Session,and the cach ..?
Put the session's value into cach ?
<si**********@rediffmail.com> ????
news:11**********************@o13g2000cwo.googlegr oups.com...
Hi,

The code is just storing the value of Cart object in the session
provided by asp.net
Now when you store the value in the session you need a key with which
you can identify it uniquely.
Also when you get the value from the session it is of "Object" type
which you have to cast into the object with which you stored that in
the session.

So while storing the value, the code should look like:

Session[KEY_CACHECART] = objCart;

where objCart is object of Cart type. So while retrieving it being cast
back to Cart
HTH,
Regards,
Angrez


Nov 19 '05 #11

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

Similar topics

1
by: eScrewDotCom | last post by:
eScrew Welcome to eScrew! eScrew is eScrew and this is eScrew story. eScrew will tell you eScrew story if you promise eScrew to consider eScrew story as joke. eScrew story is very funny. eScrew...
220
by: Brandon J. Van Every | last post by:
What's better about Ruby than Python? I'm sure there's something. What is it? This is not a troll. I'm language shopping and I want people's answers. I don't know beans about Ruby or have...
8
by: eScrewDotCom | last post by:
eScrew Welcome to eScrew! eScrew is eScrew and this is eScrew story. eScrew will tell you eScrew story if you promise eScrew to consider eScrew story as joke. eScrew story is very funny. eScrew...
125
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from...
1
by: Angie Robinson | last post by:
When I try to install the Duwamish samples, either the VB or C# ones, I get a message saying that I must install the .net framework sdk version 1.0.3705 and then it quits. I have version 1.1.4322...
1
by: Srinivasan | last post by:
When I try to run the following URL : http://localhost/Duwamish7/default.aspx of Duwamish Online application, an error page appears with the following message : ...
0
by: Srinivasan | last post by:
My earlier query regarding Duwamish Online 7 - C#, dated 31.08.2003 was not replied to. Does Microsoft still support Duwamish Online ? Or is it obsolete or something and so no response is given? ...
2
by: Paul | last post by:
I'm trying to use the Duwamish 7.0 Framework to make a distributed application. I re-wrote parts of the application to work with Students instead of Customers. So instead of a unique email...
0
by: nick | last post by:
Hello, Is Duwamish a good reference implementation? Why it defines a few identical method (Customer, Shopping card, etc) in both the class PageBase and ModuleBase in the web project? Sounds the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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
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,...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.