Can the asp.net mvc server see controls created dynamically when the parent of them performs a submit?

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?

Answers


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.


Need Your Help

multiple files from different directory as input to awk

linux bash shell awk

I have different files with same file names and they are stored in different directories such as