Click here to Skip to main content
15,916,030 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
heres the code,
tailspin spyworks.dll how to have that dll on my web?

C#
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();
        }
Posted
v2

1 solution

If you have a dll, then add it to the project by Right Clicking on Reference.
Browse that from File System and include that.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900