C#2y ago

FormCollection converting value from input='text'

I'm trying to pass a value (a decimal one, more specifically) through an input="text" (see attachment) , from a form. But when I submit it, apparently it converts the value to integer, and when I look at the input value in the FormCollection, it just discards the decimal point ".". I've tried with letters as well, it converts the text to a 0. For example: Let's say that the value of the input is 152.33. I hit submit on the form. But when I look at its value on the FormColletion, it is now "15233" (type string). I've tried as well using "," instead of "." to separate decimals. No luck. I'm using method="post" to handle the form submit. Any ideas, please? I've already spent hours trying to understand this behaviour but no success
0 Replies
No replies yetBe the first to reply to this messageJoin