hi all
I am write a code it shows me error as below
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1929: 'HtmlHelper<RegisterViewModel>' does not contain a definition for 'BeginForm' and the best extension method overload 'AjaxExtensions.BeginForm(AjaxHelper, string, string, object, AjaxOptions, object)' requires a receiver of type 'AjaxHelper'
Source Error:
|
Line 8:
Line 9:
Line 10: @using (Html.BeginForm("Register", "Account", FormMethod.Post, new { @class = "form-horizontal", role = "form" }, new { enctype = "multipart/form-data" }))
Line 11: {
Line 12: @Html.AntiForgeryToken()
|
If i remove "{@class="form-horizontal",role="form" its work but designing gonna change.