As I have some unworking stuff here I would like to know to make sure that every controls id + value which are placed in a form are sent to the POST action if the parameters have the same names.
Is that right?
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.
A standard HTML form POST will send the
nameandvalueof each<input>, and<textarea>element, along with the value of the selected<option>in a<select>box. If a submit button caused the form post, that button’s name and value will also be sent.In many cases in ASP.NET MVC, the
namewill be the same as theid, but that is not always the case.The easiest way to tell whether a value is getting sent to the server is to examine the post in the Network tab of Firebug or Chrome’s developer tools.