ASP.NET MVC How to specify additional parameters in POST method? -
In my MVC application I have a controller (project controller) that has an action (create). Accepts Project Antity (custom 3D party Datella component) as the construction function parameter. This framework automatically binds the form values entered in Project Entity objects.
This function is a signature:
& lt; AcceptVerbs (HttpVerbs.Post) & gt; I have a field called 'requestDate' in the form (_); _ (Function) (& lt; bind (exclusion: = "id") & gt; Use biowell project as a project intensity). How can I specify the POST method so that it can pass the project to-crude object and extra 'requestDate' from the form?
Just add your extra 1-1 parameters after your first (object) parameter ...
_ function (prepare the BVL project in the form of a BLL project attribute, the biweil request data to enlabel (int)) as the ActionResult termination function I will usually set the input parameter as nullable in the form of only the first parameter to the other parameter If you have a signature with Object A (Object B) in your form, you can use name = "someprop" which will automate asSSPProp, or you can name = You can use "Bismoprop" and it will be automatically for the property within the name.
Comments
Post a Comment