Asp.net例子的问题 [英] Question of Asp.net Examples

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

问题描述

我开发了一个购物网站。在这个网站上为家庭成员。如果丈夫登录意味着,他创建列表(例如:1月),那么他想分享这份名单给妻子,儿子和女儿。我的问题是如何分享妻子,儿子和女儿的名单。如果名单是分享,那么妻子将从同一个名单(1月)添加购物项目。这是可能的预付谢谢....

i develop one shopping website.In this website for family members.If Husband login means,he create list(example:january),then he want to share this list to wife ,son and daughter.My question is how to share the list to wife,son and daughter.If the list is share then wife will add shopping items from the same list(january).It is Possible advance thanks....

推荐答案

是的。



但是我们不能告诉你如何。为什么不?因为我们不知道你是如何处理事情的。如果您将篮子内容存储在数据库中,那么这很简单 - 将它们变成一个组并拥有一个他们都可以添加并可以看到的Group Basket(每个项目都有关于添加它的人的注释)



如果你把它存储在会话中,那么因为Sessions通常无法正常看到对方会更加困难。

如果您将它存储在Cookies中,那么它可供同一台PC的所有用户使用,因此它可以在这些情况下通过一些智能编码自动工作。如果您使用cookie并希望它可以在多台PC上运行,那么就忘了它 - 它在99%的情况下都不会工作。



错字 - 在第一个版本中留下except一词......:O - OriginalGriff [/ edit]
Yes.

But we can''t tell you how. Why not? Because we have no idea how you are handling things. If you are storing your Basket content in a database, then it is fairly easy - make them into a "group" and have a Group Basket which they all add to and can see (with a note on each item as to who added it)

If you store it in the Session, then it''s a lot harder as Sessions cannot normally see each other for very good reasons.
If you store it in Cookies, then it is available to all user of the same PC, so it could work automatically under those circumstances with a little intelligent coding. If you use cookies and want it to work across multiple PCs, then forget it - it won''t work under 99% of circumstances.

[edit]Typo - left the word "except" in from first version...:O - OriginalGriff[/edit]


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

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