Abhishek  Jaiswal

Abhishek Jaiswal

  • 95
  • 19.8k
  • 9.6m

Error: No overload for method 'Label' takes 2 arguments

Sep 1 2014 5:03 AM
Hello!
am getting this 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: CS1501: No overload for method 'Label' takes 2 arguments
Source Error: 
 
Line 58: <%Html.ValidationSummary(); %>
 Line 59: <div class="form-group">
 Line 60: <%Html.Label("Select Chart:", new
{ @class = "col-md-2, control-label"}); %>
Line 61: <div class="col-md-10">
 Line 62: <%Html.DropDownList("Chart", ViewData["Chart"] as SelectList, new
{ @class = "form-control" }); %>
 
 How to resolve it ?
(using asp.net MVC2)