I have just recently converted my VB code to C# and now having this error when I try to add an item to my listbox, and the value is coming from the item page. I get the error at this segement:
lstboxCart.Items.Add(cartItem.Display());
My listbox is supposed to add the product's name, quantity, and price onto one row.
Here's what I have so far:
Cart class:
public partial class Cart : System.Web.UI.Page
{
private SortedList cart = new SortedList();
protected void Page_Load(object sender, EventArgs e)
{
cart = GetCart();
if (!IsPostBack)
this.DisplayCart();
}
private SortedList GetCart()
{
if (Session["cart& ...
Go to the complete details ...