/// <summary> /// Adds an item in the Shopping Cart. /// </summary> /// <param name="strProductSellerDetailID"></param> /// <param name="intProductID"></param> private void AddToCart(string strProductSellerDetailID, int intProductID, int intCategoryID) { string strHtml = string.Empty; try { using (ShoppingCartAccess cart = new ShoppingCartAccess()) { bool isAddedToCart = cart.ShoppingCart_AddItem(strProductSellerDetailID, intProductID, intCategoryID); if (isAddedToCart) { strHtml = "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width:100%;margin-left:150px; background-color:#FFA500;\">"; strHtml += "<tr>"; strHtml += "<td align=\"center\" style=\"height:45px; color:#FFFFFF; font-size:14px; font-weight:bold;\" valign=\"middle\">"; strHtml += "<span class=\"title\" style=\"font-size:14px;\">\""; strHtml += hfProductTitle.Value + "\"</span> has been added to your cart."; strHtml += "</td>"; strHtml += "</tr>"; strHtml += "</table>"; lblSystemMessage.Text = strHtml; //lblSystemMessage.Text = "<span class=\"title\" style=\"font-size:13px;color:red\">\""; //lblSystemMessage.Text += hfProductTitle.Value + "\"</span> has been added to your cart."; } } } catch (Exception Exp) { lblSystemMessage.Text = Exp.Message.ToString(); } }