While in asp.net master page use to contain form control. I am not able to figure out, where is the correct location to place Html.BeginForm(). Is it Layout Page or the View.
Thank you for your help.
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.
You should place one in any one location that you need a form. This normally means inside a view, as you would want a different action on each page/form rather than the same one across the site.
The limitation of one form per page that webforms has does not exist in MVC – you can have more than one form per page.