Hi i am very new to visual basic and i am currently working on a web application project in vb but i have come to a standstill and need help. I have a detailsview control on my web page that lets me insert a new record. What i need is to be able to divide the value of two fields and get the total and insert that into another field in the detailsview when a button is clicked. I have attempted some coding:
Me.DetailsView1.Rows(39).Cells(1).Text = Val(Me.DetailsView1.Rows(3

.Cells(1).Text) + Val(Me.DetailsView1.Rows(37).Cells(1).Text) ' * 100
But this gives me a NaN value but if i replace the / with a plus it gives me 0, i think it is not reading the values put in rows 38 and 37.
My web page coding is attached with this message
Any help would be much appreciated.