I have a .vb file on a site which stores a few dozen properties that are used on various pages of the site. I'm new to the company and the only web-developer, but I didn't make the site myself. I'm here to try and update it.

I've added two properties to the file, one works and the other doesn't but I can't see why?

(Out Of Stock works, New Total doesn't)

**First:**

```
Property OutOfStockItems() As Integer
    Get
        Return intOutOfStockItems
    End Get
    Set(ByVal value As Integer)
        intOutOfStockItems = value
    End Set
End Property

```

**Set Here** (Cart.aspx) - This property is set based on the amount of items in the cart with the Out of Stock boolean as 'true'.

```
Protected Sub btnCheckout_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnCheckout.Click
    c.intOutOfStockItems = ooscount
    c.decNewTotal = Decimal.Parse(total)
    Response.Redirect("billing-details.aspx")
    'txtVoucher.Text = "New Total: " + c.decNewTotal.ToString()
End Sub

```

**Used Here** (Billing-Details.aspx) - One page later in the cart process

```
'Check if customer has ordered out of stock items
        If c.intOutOfStockItems >= 1 Then
            pnlOutOfStockBlurb.Visible = True
        Else
            pnlOutOfStockBlurb.Visible = False
        End If

```

**Second:**

```
Property NewTotal() As Decimal
    Get
        Return decNewTotal
    End Get
    Set(ByVal value As Decimal)
        decNewTotal = value
    End Set
End Property

```

**Set here** (Cart.aspx) - This decimal value can be used anywhere on the cart page.

```
    Protected Sub percentageDiscount()

    Dim invert As Integer = 100 - Voucher.DiscountAmount
    Dim percent As Decimal = invert / 100
    total = Decimal.Parse(grandTotalInt)

    If Voucher.AppliesTo = "Cart Total" Then
        If total > Voucher.Amount Then
            total = total * percent
        End If

    End If

    c.decNewTotal = Decimal.Parse(total)
    txtVoucher.Text = c.decNewTotal.ToString()
End Sub

```

**Does nothing here** (Payment-details.aspx) - This is two steps later in the cart process (Cart -> Billing-Details -> Payment-Details), always displays as 0.

```
lblSavings.Text = c.decNewTotal.ToString()

```

This line here on the cart page displays the correct number to a textbox, but that number doesn't go to the new page at all.

```
txtVoucher.Text = c.decNewTotal.ToString()

```

***Edit***

```
Imports DataAccessLayer
Imports System.Data
Imports System.Xml
Imports System.Net

Imports System.Reflection
Imports System.Net.Mail

Partial Class payment_details
Inherits System.Web.UI.Page
Dim c As User

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

```