Hi guys...
i am developing one application in MVC
whenever i tried to go in create link suddeenly i got this error
and i am doing validation in create page..
please guide me... asap....
Server Error in '/' Application.
------------------------------
*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: *CS1061:
'System.Web.Mvc.HtmlHelper<MoviesAPP.Models.Home>' does not contain a
definition for 'EnableClientValidation' and no extension method
'EnableClientValidation' accepting a first argument of type
'System.Web.Mvc.HtmlHelper<MoviesAPP.Models.Home>' could be found (are you
missing a using directive or an assembly reference?)
*Source Error:*
Line 15: </h2>
Line 16:
Line 17: <% Html.EnableClientValidation(); %>
Line 18: <%= Html.ValidationSummary("Create was unsuccessful.
Please correct the errors and try again.") %>
Line 19:
*Source File:* d:\Jagadish\MVC\MoviesAPP\MoviesAPP\Views\Home\Create.aspx
*Line:* 17
Show Detailed Compiler Output:
Show Complete Compilation Source:
------------------------------
*Version Information:* Microsoft .NET Framework Version:2.0.50727.4036;
ASP.NET Version:2.0.50727.3082
--
Thanks & Regards,
Jagadish Kumar L
+91-9789425903
[email protected]