Hi All,
I'm quite new to ASP.net and i can't figure out one thing.
I would like to add the total price and the total discount to 2 different
variables so when my reapeater is finished i've got my data on the screen
and the total price and the total discount
So far i've got this code wish works fine to show the data but it doesn't do
any calculation
Dim query As String
kid = Request.QueryString("kid")
//this query is a very simple versiono of the real one
query = "SELECT Title, ArtistName, Price DefaultPrice,Discount WHERE
CustomerID = '" & kid & "'
connection = New SqlConnection(connectionString)
connection.Open()
Dim commando As SqlCommand = New SqlCommand(query, connection)
Dim reader As SqlDataReader = commando.ExecuteReader()
Dim TotalPrice As Double
voorstellingen.DataSource = reader
voorstellingen.DataBind()
reader.Close()
connection.Close()
getKlantGegevens()
So i would like to fill a variable with the total price and a variable with
the total discount.
Thanks in advance
Erik