Is there anyway to load up a asp.net page object and render its contents to string from a console application? -
i trying use aspx pages email templates. there bunch of objects on page used replacements in html. because it's aspx page i'll able use databinding, repeaters, etc. @ run time, want able instantiate aspx page path, pass in bunch of properties, , rendered result of page , email it. seems pretty straightforward asp.net website (maybe using buildmanager or server.execute.) however, want able use same templates via console application loading page object filepath. possible?
you host own webserver. cassini webserver.
in own application (a windows-based desktop-cms), include web server, (non-cassini). works well, not serve asp.net plain, html.
as did research then, first wanted use cassini, too, @ point, found out user privileges required run successfully; may not issue you, keeping in mind , try run permissions of later user, might idea.
Comments
Post a Comment