I have a text field that contains an int data field. When the page loads, the default is 0. The following is the code to display the text field:
<%:Html.TextBoxFor(model => model.Ssn, htmlAttributes: new { @class = "txtBox txtBoxMediumSmall" })%>
where model.Ssn is int .
Why isnβt empty? And what needs to be done to make it empty?
Please let me know if further information is required.
source share