Click here to Skip to main content
15,888,816 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: MVC4 Ajax call does not reach controller method Pin
Pratik Bhuva1-Nov-13 22:29
professionalPratik Bhuva1-Nov-13 22:29 
QuestionHow to rebind more three RadGrid after close the RadWindow Pin
Rahul_Pandit1-Nov-13 2:08
Rahul_Pandit1-Nov-13 2:08 
SuggestionRe: How to rebind more three RadGrid after close the RadWindow Pin
Richard Deeming1-Nov-13 3:06
mveRichard Deeming1-Nov-13 3:06 
QuestionReturn value of variable from Stored Procedure to BC layer Pin
Uma Sengoden31-Oct-13 8:10
Uma Sengoden31-Oct-13 8:10 
QuestionRe: Return value of variable from Stored Procedure to BC layer Pin
Richard MacCutchan31-Oct-13 15:14
mveRichard MacCutchan31-Oct-13 15:14 
AnswerRe: Return value of variable from Stored Procedure to BC layer Pin
Pratik Bhuva1-Nov-13 22:32
professionalPratik Bhuva1-Nov-13 22:32 
Questionwhat do you think of iron speed designer? Pin
Valery Possoz31-Oct-13 1:00
professionalValery Possoz31-Oct-13 1:00 
QuestionCan you help me in this token? if(this._Item==null){ this._Item = new List<Cart>(); this._dateCreate = DateTime.Now; } }.I do not understand it and why use Pin
Danh Le29-Oct-13 18:18
Danh Le29-Oct-13 18:18 
CSS
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Shopping
{
    public class Cart
    {
        private int _IDproduct;
        private string _nameProduct;
        private int _Quantity;
        private string _ImageUrl;
        private double _Price;
        private double _Total;




       public Cart(){}
       public  Cart(int IDProduct, string NameProduct, int Quantity, string ImageURL, double Price){

           _IDproduct = IDProduct;
           _nameProduct = NameProduct;
           _Quantity = Quantity;
           _ImageUrl = ImageURL; ;
           _Price = Price;
           _Total = Price*Quantity;
                }
       public int IDProduct {
           get { return _IDproduct; }
           set { _IDproduct = value; }
       }

       public string NameProduct
       {
           get { return _nameProduct; }
           set { _nameProduct = value; }
       }

       public int Quantity
       {
           get { return _Quantity; }
           set { _Quantity = value; }
       }

       public string ImageURL
       {
           get { return _ImageUrl; }
           set { _ImageUrl = value; }
       }

       public double Price
       {
           get { return _Price; }
           set { _Price = value; }
       }

       public double Total
       {
           get { return _Price*_Quantity; }

       }
             }

        public  class CartItem{

            private DateTime _dateCreate;
            private DateTime _dateUpdate;
            private List<Cart> _Item;
            public CartItem() {

             if(this._Item==null){

                     this._Item = new List<Cart>();
                     this._dateCreate = DateTime.Now;
             }
                        }

            public List<Cart> Item {
                get { return _Item; }
                set { _Item = value; }
            }

            public void Insert(int IDProduct, int Quantity, string ImageURL, string NameProuct, double Price) {


            }


        }



}

AnswerRe: Can you help me in this token? if(this._Item==null){ this._Item = new List<Cart>(); this._dateCreate = DateTime.Now; } }.I do not understand it and why Pin
Joshua Omundson30-Oct-13 4:01
Joshua Omundson30-Oct-13 4:01 
AnswerRe: Can you help me in this token? if(this._Item==null){ this._Item = new List<Cart>(); this._dateCreate = DateTime.Now; } }.I do not understand it and why Pin
Richard MacCutchan30-Oct-13 7:03
mveRichard MacCutchan30-Oct-13 7:03 
QuestionASP.NET GlobalResources.. Use <%$ or <%= embedded code? Pin
JD8629-Oct-13 11:59
JD8629-Oct-13 11:59 
AnswerRe: ASP.NET GlobalResources.. Use <%$ or <%= embedded code? Pin
Wombaticus2-Nov-13 7:43
Wombaticus2-Nov-13 7:43 
QuestionHow To get pop up window using java script Pin
chahthuranga28-Oct-13 23:35
chahthuranga28-Oct-13 23:35 
AnswerRe: How To get pop up window using java script Pin
thatraja29-Oct-13 2:23
professionalthatraja29-Oct-13 2:23 
AnswerRe: How To get pop up window using java script Pin
rahul_kakadia29-Oct-13 21:06
rahul_kakadia29-Oct-13 21:06 
AnswerRe: How To get pop up window using java script Pin
CIKolkataDeveloper10-Nov-13 22:18
CIKolkataDeveloper10-Nov-13 22:18 
QuestionGET DATA FROM PAGE AS (CTRL + S) Pin
Member 1030767728-Oct-13 23:13
Member 1030767728-Oct-13 23:13 
AnswerRe: GET DATA FROM PAGE AS (CTRL + S) Pin
Blikkies29-Oct-13 4:21
professionalBlikkies29-Oct-13 4:21 
GeneralRe: GET DATA FROM PAGE AS (CTRL + S) Pin
Member 1030767729-Oct-13 21:12
Member 1030767729-Oct-13 21:12 
GeneralRe: GET DATA FROM PAGE AS (CTRL + S) Pin
Member 1030767729-Oct-13 21:24
Member 1030767729-Oct-13 21:24 
QuestionTimer Pin
AnupamSinghJadoun28-Oct-13 21:43
AnupamSinghJadoun28-Oct-13 21:43 
QuestionCrystal Report Error Pin
Tanadon Manpiboon28-Oct-13 17:49
professionalTanadon Manpiboon28-Oct-13 17:49 
AnswerRe: Crystal Report Error Pin
thatraja28-Oct-13 23:29
professionalthatraja28-Oct-13 23:29 
QuestionHelp popup on new features Pin
civic06028-Oct-13 10:50
civic06028-Oct-13 10:50 
QuestionRe: Help popup on new features Pin
thatraja29-Oct-13 3:13
professionalthatraja29-Oct-13 3:13 

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.