3,597 questions
You did not provide the error... Your code tries to multiple a string named ItemPrice by an unknown value (hfItemQuanGrid.Value). Convert ItemPrice and perhaps hfItemQuanGrid.Value to a numeric type using the TryParse() method.
Imports System.Data
Module Program
Sub Main(args As String())
Dim ItemPrice As String = "1.23"
Dim Price As Decimal
If (Decimal.TryParse(ItemPrice, Price)) Then
Console.WriteLine("TryParse was successful. The price is " & Price)
Else
Console.WriteLine("Unable to convert " & ItemPrice & " to a decimal")
End If
End Sub
End Module