I want to create with Javascript some controls inside a form and then I want to submit it to the server.
Can the server read these controls created dynamically?
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.
Yes. MVC is essentially stateless. Remember, this isn’t ASP.NET Webforms – “controls” don’t exist in same way they did. When you do a POST, you are simply sending form field name/value pairs. If the name of a field corresponds to a property in your model, or a parameter to your action, it will bind.