Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

int model property shows 0 in textbox .net core

<%
    string userName = string.Empty;

    if (Model != null)
    {
        userName = Model.Name;
    }

%>

<input asp-for="Name" value="@userName" class="form-control" />
Source by social.msdn.microsoft.com #
 
PREVIOUS NEXT
Tagged: #int #model #property #shows #textbox #core
ADD COMMENT
Topic
Name
5+6 =