The DefaultModelBinder
does not set the value of fields, only properties. You need to change you model to include properties
public class LetterViewModel
{
public string LetterText { get; set; } // add getter/setter
}
More Related Contents:
- How to write code that runs once
- How to display indirect data in Jqgrid
- HTML.ActionLink method
- Pass array to mvc Action via AJAX
- Hyphenated html attributes with asp.net mvc
- 404 error after adding Web API to an existing MVC Web Application
- Reading a key from the Web.Config using ConfigurationManager
- An error occurred during report processing. -RLDC reporting in ASP.NET MVC
- How to clear browser cache on browser back button click in MVC4?
- How do I log a user out when they close their browser or tab in ASP.NET MVC?
- How can I return the current action in an ASP.NET MVC view?
- how to make a wizard with ASP.Net MVC
- string.empty converted to null when passing JSON object to MVC Controller
- Dictionary map to an object using Automapper
- Async action filter in MVC 4
- Why is Asp.Net Identity IdentityDbContext a Black-Box?
- EditorFor() and html properties
- How can I secure passwords stored inside web.config?
- Asp.Net MVC3: Set custom IServiceProvider in ValidationContext so validators can resolve services
- How to add Web API to an existing ASP.NET MVC (5) Web Application project?
- MVC 3: How to render a view without its layout page when loaded via ajax?
- razor view with anonymous type model class. It is possible?
- How can I upload a file and save it to a Stream for further preview using C#?
- put page number when create PDF with iTextSharp
- Using Razor without MVC [duplicate]
- The field must be a date – DatePicker validation fails in Chrome – mvc
- How to create a instance of UserCredential if I already have the value of Access Token?
- Specify Date format in MVC5 (dd/MM/yyyy)
- LINQ to Entities does not recognize the method ‘System.String ToString()’ method in MVC 4
- There is no ViewData item of type ‘IEnumerable’ that has the key country