Assign label or string to external html file
Hello,
I'm trying to build a bulk emailer for a client. (no not a spammer, a newsletter!) I'd like them to only have to edit an html file for the body of the email. I figured out how to do a Response.WriteFile inside a label in the pages HTML, and that displays okay, but when I reference the .Text value for the body on my button click it is empty. I have a feeling this is a code-behind vs. middle of the html problem.
Basically I want to do something like this:
string blah = myExternalFile.html;
-or-
lblBlah.Text = myExternalFile.html;
However everything I've tried .NET has not been happy with. Any other way around including external text files into strings or labels?
|