|
Home > Archive > Commerce Server General > October 2006 > AddToCart
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| jarrette 2006-10-04, 7:30 pm |
| this class is being created
AddToCart addToCartCtrl = new AddToCart ();
along with its parameters...
addToCartCtrl.CatalogName = productCatalog;
addToCartCtrl.CategoryName = productCategory;
addToCartCtrl.ProductName =
productPropertyCollection.GetStringProperty("Name");
addToCartCtrl.ProductID = product.ProductID;
addToCartCtrl.VariantID =
productPropertyCollection.GetStringProperty("VariantID");
addToCartCtrl.PostingUrl = productPostingUrl;
this is being looped through for every product in the product listing after
a search. Only problem is, when i click this button, nothing happens. The
same object is being called in the products details page and it works fine.
I'm really spinning my wheels on this one. The button is NOT firing the
On_Click even in the AddToCart.cs file.
| |
| Colin Bowern 2006-10-05, 1:30 am |
| Jarrette,
Where are you adding this control (e.g. repeater, page level)? Have you
turned on ASP.NET tracing (page output) to see what events are firing?
Cheers,
Colin
"jarrette" <jarrette@discussions.microsoft.com> wrote in message
news:5EFF233E-D605-4090-993F-9DBFEE43D3D6@microsoft.com...
> this class is being created
>
> AddToCart addToCartCtrl = new AddToCart ();
>
> along with its parameters...
>
> addToCartCtrl.CatalogName = productCatalog;
> addToCartCtrl.CategoryName = productCategory;
> addToCartCtrl.ProductName =
> productPropertyCollection.GetStringProperty("Name");
> addToCartCtrl.ProductID = product.ProductID;
> addToCartCtrl.VariantID =
> productPropertyCollection.GetStringProperty("VariantID");
> addToCartCtrl.PostingUrl = productPostingUrl;
>
>
> this is being looped through for every product in the product listing
> after
> a search. Only problem is, when i click this button, nothing happens.
> The
> same object is being called in the products details page and it works
> fine.
> I'm really spinning my wheels on this one. The button is NOT firing the
> On_Click even in the AddToCart.cs file.
|
|
|
|
|