skip to Main Content

Asp.net – I receive null after Model Binding

I receive variable with null values after model binding. I don't know why, can someone explain what's wrong? Thank you. Title is null, Content is null after form submitting. Create.cshtml <form asp-action="Create" method="post"> @Html.AntiForgeryToken() <div asp-validation-summary="ModelOnly" class="text-danger"></div> <div class="form-group"> <label…

VIEW QUESTION

CSS not applied to img in ASP.NET

I'm creating an ASP.NET MVC project and I'm trying to apply some css to an image. Project structure And this is the code: //Index.cshtml.css h1 { color: green } .roundImage { border-radius: 50px; } #profilePhoto { width: 200px; margin: 2rem…

VIEW QUESTION
Back To Top
Search