Click here to Skip to main content
15,898,981 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: A stupid question about databases and ASP.NET Pin
Jesse Squire26-Mar-08 6:49
Jesse Squire26-Mar-08 6:49 
GeneralPlease help me any one............ Pin
Member 377313726-Mar-08 5:27
Member 377313726-Mar-08 5:27 
GeneralRe: Please help me any one............ Pin
Herman<T>.Instance26-Mar-08 5:30
Herman<T>.Instance26-Mar-08 5:30 
GeneralRe: Please help me any one............ Pin
Jesse Squire26-Mar-08 6:26
Jesse Squire26-Mar-08 6:26 
GeneralRe: Please help me any one............ Pin
Not Active26-Mar-08 9:06
mentorNot Active26-Mar-08 9:06 
Questionlist of class(asp.net with C#) Pin
Saba0226-Mar-08 5:27
Saba0226-Mar-08 5:27 
GeneralRe: list of class(asp.net with C#) Pin
Declan Bright26-Mar-08 5:37
Declan Bright26-Mar-08 5:37 
GeneralRe: list of class(asp.net with C#) Pin
ChrisKo26-Mar-08 10:43
ChrisKo26-Mar-08 10:43 
using System;
using System.Collections.Gerenic;

public class ShoppingCart
{
   //Fields
   private List<cartitem> _cartItems = new List<cartitem>();

   public ShoppingCart()
   {
      //Constructor Stuff Here
   }

   public List<cartitem> CartItems
   {
      get { return _cartItems; }
      set { _cartItems = value; }
   }
}
</cartitem></cartitem></cartitem>


You can then create an instance of ShoppingCart and Add CartItems to it.

ShoppingCart cart = new ShoppingCart();
cart.CartItems.Add(new CartItem(price, quantity, description));


Hope that helped and that code doesn't break as I hand wrote it. But that should point you in the right direction.
QuestionBatch File Upload Pin
Talal Sultan26-Mar-08 5:11
Talal Sultan26-Mar-08 5:11 
GeneralRe: Batch File Upload Pin
Declan Bright26-Mar-08 5:21
Declan Bright26-Mar-08 5:21 
GeneralRe: Batch File Upload Pin
Talal Sultan26-Mar-08 5:25
Talal Sultan26-Mar-08 5:25 
QuestionGoing back to a previous web page with information still being present Pin
ahlaj7726-Mar-08 3:55
ahlaj7726-Mar-08 3:55 
GeneralRe: Going back to a previous web page with information still being present Pin
eyeseetee26-Mar-08 4:08
eyeseetee26-Mar-08 4:08 
GeneralRe: Going back to a previous web page with information still being present [modified] Pin
ahlaj7726-Mar-08 4:21
ahlaj7726-Mar-08 4:21 
GeneralRe: Going back to a previous web page with information still being present Pin
eyeseetee26-Mar-08 4:38
eyeseetee26-Mar-08 4:38 
QuestionCSS OVERLAPPING MENU?? (URGENT!) Pin
John Sundar26-Mar-08 2:54
John Sundar26-Mar-08 2:54 
GeneralRe: CSS OVERLAPPING MENU?? (URGENT!) Pin
Eduard Keilholz26-Mar-08 3:21
Eduard Keilholz26-Mar-08 3:21 
GeneralRe: CSS OVERLAPPING MENU?? (URGENT!) Pin
eyeseetee26-Mar-08 3:42
eyeseetee26-Mar-08 3:42 
GeneralRe: CSS OVERLAPPING MENU?? (URGENT!) Pin
John Sundar26-Mar-08 4:50
John Sundar26-Mar-08 4:50 
GeneralRe: CSS OVERLAPPING MENU?? (URGENT!) Pin
Jesse Squire26-Mar-08 7:22
Jesse Squire26-Mar-08 7:22 
QuestionRe: CSS OVERLAPPING MENU?? (URGENT!) Pin
John Sundar26-Mar-08 19:29
John Sundar26-Mar-08 19:29 
GeneralRe: CSS OVERLAPPING MENU?? (URGENT!) Pin
Jesse Squire27-Mar-08 1:23
Jesse Squire27-Mar-08 1:23 
GeneralRe: CSS OVERLAPPING MENU?? (URGENT!) Pin
John Sundar27-Mar-08 2:40
John Sundar27-Mar-08 2:40 
GeneralRe: CSS OVERLAPPING MENU?? (URGENT!) Pin
Jesse Squire27-Mar-08 2:49
Jesse Squire27-Mar-08 2:49 
QuestionRe: CSS OVERLAPPING MENU?? (URGENT!) Pin
John Sundar31-Mar-08 19:38
John Sundar31-Mar-08 19:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.