Skip to content

Instantly share code, notes, and snippets.

@OndeVai
Created June 27, 2014 17:06
Show Gist options
  • Save OndeVai/8676155d9e4c3ccea13f to your computer and use it in GitHub Desktop.
Save OndeVai/8676155d9e4c3ccea13f to your computer and use it in GitHub Desktop.
create html helper in code
Helper = new HtmlHelper<T>(new ViewContext(controllerContext, new FakeView(), viewData, tempData, System.IO.TextWriter.Null), new ViewPage());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment