As per question says. Specifically i want the html.beginform() to have the runat=”server” attribute.
Reason is that inside the form I’m placing the asp.net login control, which requires the form element to be runat server.
Thanks heaps.
Rwendi
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.
No, you can forget about this attribute in ASP.NET MVC 3. It cannot be used. Don’t use server side controls in an ASP.NET MVC application. They cannot work. Either use a legacy WebForms ASPX view or if you want to work with ASP.NET MVC you will have to replace the ASP.NET Login control with ASP.NET MVC specific things. Create a new ASP.NET MVC 3 application usnig the built-in wizard and look at the AccountController and the corresponding LogOn view.