c# - URL Extension in MVC 4 Not working after update -
i've updated mvc 3 mvc 4
however url extension methods not binding. not seems think url has method psurl(). still in same name space..
method:
public static string psurl(this urlhelper url) view:
@url.psurl() does mvc4 have different way of extending? cant seem find on it.
the updates must have removed name space views web.config (note: there 2 web.configs, check 1 inside views folder!)
re-adding line use extensions, resolves again.
<pages pagebasetype="system.web.mvc.webviewpage"> <namespaces> <add namespace="myproject.extensions" />
Comments
Post a Comment