Ive got an Html.TextBoxFor
that is used to represent a Double
. When I generate "Create" View
@Html.TextBoxFor(Function(model) model.Longitude)
The <input>
has a default value of "0"
I have tried modifying it in two ways
@Html.TextBoxFor(Function(model) model.Longitude, New With {.value = ""})
and in the controller
Dim model As Domain.Event = New Domain.Event
With model
.Longitude = String.Empty
End With
Return View(model)
But neither of these work.
How can I have the input "Blank" for a numeric input?