I would like to save html content when client click the export button on the form, And I do not want to use WebBrowser Component and others like, simply my codes as below

MessageTemplate template = Core.Instance.SiparislerService.GetMessageTemplateByPK(166);
List<Kampanyalar> eBulten = Core.Instance.PazarlamaService.GetCampaingList(View.fkBulten);
var body = Razor.Parse(template.MessageText, eBulten.ToList());

Then I would like to save return values from body as *html file to my local disk (Razor.Parsed from DB).

I have tried something but I couldn't handle it. Please feel to free and share your advises

Related posts

Recent Viewed