Whats the best way to get User Input from the view to controller. I mean specific input not like “FormCollection” someting like “object person” or “int value” and how to refresh the page on certain interval
Share
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.
Say for example if your view is strongly typed with a “Person” class:
Then inside your view:
Then you’d have an action that would handle the form:
MVC uses what are called ModelBinders to take that form collection and map it to a model.
To answer your second question, you can refresh a page with the following JavaScript: