Tailspin spyworks我的购物车会话不存在 [英] Tailspin spyworks my Shopping cart SESSION DOES NOT EXIST

查看:47
本文介绍了Tailspin spyworks我的购物车会话不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

继承人代码,

tailspin spyworks.dll如何在我的网站上拥有该dll?



heres the code,
tailspin spyworks.dll how to have that dll on my web?

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using SkWorks;
using System.Web.UI.WebControls;
using System.Web.Security;
using CommerceModel;
using System.Data;
using System.Diagnostics;

//--------------------------------------------------------------------------------------------------------------------------------------------------+
// TODO: In a future version of this application we will seperate this logic into a seperate Business Objets Layer
//--------------------------------------------------------------------------------------------------------------------------------------------------+
namespace SkWorks
{
    public struct ShoppingCartUpdates
    {
        public int ProductId;
        public int PurchaseQuantity;
        public bool RemoveItem;
    }


    public partial class MyShoppingCart
    {
        public const string CartId = "SkWorks_CartID";

        //------------------------------------------------------------------------------------------------------------------------------------------+
        public String GetShoppingCartId()
        {
            string str = HttpContext.Current.Session["CartId"].ToString();
            Session[CartId] = System.Web.HttpContext.Current.Request.IsAuthenticated ? User.Identity.Name : Guid.NewGuid().ToString();
            if (Session[CartId] == null)
            {

            }
            return Session[CartId].ToString();
        }

推荐答案

如果你有 dll ,那么添加通过右键单击参考进入项目。

文件系统浏览并包含该内容。
If you have a dll, then add it to the project by Right Clicking on Reference.
Browse that from File System and include that.


这篇关于Tailspin spyworks我的购物车会话不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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