0

I'm trying to write an asp.net page that will keep variables using the .value command. It's not working. Here's my code

Dim custID As Integer
        Dim noMovies As Integer
        Dim price As Double
        Dim discount As Double
        Dim total As Double

            custID = Integer.Parse(Me.idTextBox.Text)
            noMovies = Integer.Parse(Me.numMovTextBox.Text)
            price = noMovies * RENTAL_RATE
            discount = price * DISCOUNT_RATE
            total = price - discount


        totSales += 1
        'totSalesHiddenField.value = totSales.ToString()    couldn't get this working for the life of me
        totIncome += total

            priceTextBox.Text = price.ToString("C")
            discountTextBox.Text = discount.ToString("C")
            totDueTextBox.Text = total.ToString("C")

            totSalesTextBox.Text = totSales
            totRevTextBox.Text = totIncome.ToString("C")

I keep getting errors that .value is not part of string, decimal, integer, etc

Votes + Comments
why are people so critical? it's not that serious. =p
Wrong forum, yet again.
3
Contributors
3
Replies
4
Views
10 Years
Discussion Span
Last Post by SheSaidImaPregy
0

Did you check to see if your HTML included <input type="hidden" RUNAT="SERVER"> ?

Otherwise you coding should work. make sure the hidden field has the 'runat="server"' on it.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.