i got a code which said that we can razor template in asp.net webform 4.0. here is the sample code which i tried but got compilation error
string template = @"<html> <body> Hi @Model.FirstName @Model.LastName, Here are your orders: @foreach(var order in Model.Orders) { Order ID @order.Id Quantity : @order.Qty <strong>@order.Price</strong>. } </body> </html>"; var model = new OrderModel { FirstName = "Martin", LastName = "Whatever", Orders = new [] { new Order { Id = 1, Qty = 5, Price = 29.99 }, new Order { Id = 2, Qty = 1, Price = 9.99 } } }; string mailBody = Razor.Parse(template, model); i download the razor engine from https://razorengine.codeplex.com/ and add the dll files but no luck. i import at top this
namespace usin ...

Go to the complete details ...