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  & lt;% = Html.h ("& lt; h1 & gt; some string ")%>   / P> 

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

Post text "itemprop =" text ">

My_Global. Spark is usually seen in a way when my project is full switches. Recommend to do:

  & lt; namespace = "spark" /> use & lt; names = "System.Web.Mvc" /> gt; & lt; Use the names = "System.Web.Mvc.Ajax" /> use the & lt; names = "System.Web.Mvc.Html" /> & lt; na Use the names = "System.Web.Routing" /> 
Use names = "System.Linq" /> Use the names ; assembly use = "System.Web.Extensions, version = 3.5.0.0, Culture = Neutral, Public Token = 31BF3856AD364E35 "/> Use Legislation =" System.Web.Abstractions, Version = 3.5.0.0, Culture = Neutral, Public Token = 31BF3856AD364E35 "/> ; & Lt; Use assembly = "System.Web.Routing, version = 3.5.0.0, culture = neutral, public token = 31BF3856AD364E35" /> & Lt; Use assembly = "System.Web.Mvc, version = 2.0.0.0, culture = neutral, public token = 31BF3856AD364E35" /> & Lt; Use assembly = "System.Data.DataSetExtensions, version = 3.5.0.0, culture = neutral, public keynote = B77A5C561934E089" /> & Lt; Use assembly = "System.Xml.Linq, version = 3.5.0.0, culture = neutral, public token = B77A5C561934E089" /> & Lt; Use assembly = "System.Data.Linq, version = 3.5.0.0, culture = neutral, public token = B77A5C561934E089" />

Comments