Reputation:
I have load some pages from Plugin, But "@Html.Widget"
Code Not support on view page, If I use This @Html.Widget
On View page then it's return error:-
'System.Web.Mvc.HtmlHelper<Nop.Plugin.mode.xxxxx>' does not contain a definition for 'Widget' and no extension method 'Widget' accepting a first argument of type 'System.Web.Mvc.HtmlHelper<Nop.Plugin.model.xxxxx>' could be found (are you missing a using directive or an assembly reference?)
Can any one suggest me am i missing some thing?
Regards, Vinit Patel
Upvotes: 2
Views: 796
Reputation: 3439
Just add the following line of code to the top of your cshml file
using Nop.Web.Framework;
Upvotes: 1