asp.net mvc 2 - Spark View Engine with custom HTML Helpers -
I have system inside my project. Some self helpers have been added to Web.Mvc, and this is the default Asp.net mvc visual engine
namespace system. {AntiXss.HtmlEncode (Input) by defining auxiliary like Web.mvc {public static class XSSHelper {public static string H (this HtmlHelper helper, string input); } Public stable string sanitize (this HtmlHelper helper, string input) {AntXSS. GetsSafeHtml (input) returns; } Public Static String Hscript (HtmlHelper Assistant, String Input) {Antivirus Back Javascript encoding; I gave it to
/ P>& lt;% = Html.h ("& lt; h1 & gt; some string ")%>
Now that I'm using a spark view engine, I can not seem to do this work. I got the following error:
'System.Web.Mvc.HtmlHelper' has no definitions for 'H' and no extension method 'H' type 'system does not accept the first argument is.
How do I get spark to see additional assistants?
Edit: I also do
Comments
Post a Comment