Author: ma111 | Posted on: 10/28/2010 12:59:03 PM | Views : 258

I have a class in my App_Code folder called Order. On one of my pages I am trying to create two different orders using this class.


Private Order1 As Order Private Order2 As Order Sub Page_Load(ByVal Sender As Object, ByVal E As EventArgs) Handles Me.Load Dim CartID As String = "4525543" Order1 = GetOrderFromDatabase(CartID) Order2 = Order1 Order2.Shipping = 3 Order1.Shipping = 2 Response.Write(Order1.Shipping) Response.Write(Order2.Shipping) End Sub When I run the page each of the Response.Write statements ouputs a 2. But this is not correct. One should be 3 and the other should be 2. Does anyone know why this is not working?


Normal 0 MicrosoftInternetExplorer4

Go to the complete details ...