The value submitted by input field is a string (regardless of validation), so you need to convert the value.
[Single.TryParse documentation should help][1]
[1]: http://msdn.microsoft.com/en-us/library/26sxas5t.aspx
↧