帮帮忙..简单的问题?? [英] help pls.. easy question??

查看:59
本文介绍了帮帮忙..简单的问题??的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚完成了一个名为teddybears的asp.net应用程序的创建。


在测试阶段上传了直播(例如: www.teddy.com ),我试图用
购买东西并将其添加到我的购物车中。


然后,我尝试在另一台客户端计算机上打开该应用程序。我只是随便检查了购物车,在那里我找到了相同的物品,我在第一台电脑上添加了

到我的购物车。


我用来添加到我的购物车中的是会话(购物车)。


我怎样才能将当前购物车的内容保存到当前机器

正在使用?


感谢一百万人!

i just finished creating an asp.net application named teddybears.

during the testing phase uploaded live ( ex: www.teddy.com) , i tried to
purchase something and add it to my shopping cart.

then, i tried opening the application on a different client computer. I just
randomly checked the shopping cart and there i found the same items i added
to my cart on the first computer.

all i did using to add to my cart was session("cart").

how can i just save the contents of the current cart to the current machine
being used?

thanks a million guys!

推荐答案

" ChiWhiteSox" < Ch ********* @ discussion.microsoft.com写信息

新闻:A8 ******************* *************** @ microsof t.com ...
"ChiWhiteSox" <Ch*********@discussions.microsoft.comwrote in message
news:A8**********************************@microsof t.com...

如何保存当前购物车的内容到目前的

机器

正在使用?
how can i just save the contents of the current cart to the current
machine
being used?



如何将购物车数据添加到Session对象......?听起来非常像

你正在使用静态变量...

How are you adding cart data to the Session object...? Sounds very much like
you''re using static variables...


嘿Mark


会话(购物车)是prodID,desc,qty和amount的数组。


我通过将prodID添加到BearArray()并重新分配<来添加一个项目br />
数组到Session(cart)变量。这些都围绕在一个名为

shoppingcart.vb

$ b $的课程中。我在做什么有什么问题吗?


Mark Rae写道:
hey Mark

Session("cart") is an array of prodID,desc,qty and amount.

I add an item by adding the prodID to the BearArray() and re assigning that
array to the Session("cart") variable. These all revolves in a class called
shoppingcart.vb

Is there something wrong with what im doin?

"Mark Rae" wrote:

" ChiWhiteSox" < Ch ********* @ discussion.microsoft.com写信息

新闻:A8 ******************* *************** @ microsof t.com ...
"ChiWhiteSox" <Ch*********@discussions.microsoft.comwrote in message
news:A8**********************************@microsof t.com...

如何保存当前购物车的内容到目前的

机器

正在使用?
how can i just save the contents of the current cart to the current
machine
being used?



如何将购物车数据添加到Session对象......?听起来非常像

你正在使用静态变量...


How are you adding cart data to the Session object...? Sounds very much like
you''re using static variables...


" ChiWhiteSox" < Ch ********* @ discussion.microsoft.com写信息

news:15 ******************* *************** @ microsof t.com ...
"ChiWhiteSox" <Ch*********@discussions.microsoft.comwrote in message
news:15**********************************@microsof t.com...

Session(" cart")是一个数组prodID,desc,数量和金额。
Session("cart") is an array of prodID,desc,qty and amount.



毫无疑问,但是它如何/在哪里宣布......?

No doubt, but how / where is it declared...?


我添加一个项目通过将prodID添加到BearArray()并将

数组重新分配给Session(cart)变量。这些都围绕在一个类中

叫做

shoppingcart.vb


我有什么不妥吗?
I add an item by adding the prodID to the BearArray() and re assigning
that
array to the Session("cart") variable. These all revolves in a class
called
shoppingcart.vb

Is there something wrong with what im doin?



在您实际向我们展示您的代码之前无法判断......

Impossible to tell until you actually show us your code...


这篇关于帮帮忙..简单的问题??的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆