I have a bunch of forms where its easier to type the entire html tags:
However, when I pass the Model to the View, it doesn’t show the value. What am I missing here?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You will need to manually inject the values from ViewData. The helpers encapsulate this, but if you are writing straight HTML there’s no way for ASP.NET MVC to know how to wire the values to the form elements.