Thursday, November 29, 2012

How to generate ASPX dynamically?

By Razor engine
http://razorengine.codeplex.com/

  string template = @"<%@ Control Language="C#" ClassName="@Model.Name" %>";
  string result = Razor.Parse(template, new { Name = "Classname" });

No comments:

Post a Comment