I have a asp.net application, which used html templates to generate content and sends this in the email. The code to read the html file is as-
private string LoadHtml(string HtmlFile) {
Assembly asm = Assembly.GetExecutingAssembly();
Stream stream = asm.GetManifestResourceStream(asm.GetName().Name +
"." + HtmlFile);
StreamReader r = new StreamReader(stream);
string html = r.ReadToEnd();
return html;
}
Since we are in the process of internationlization, i need to localize the html templates, Can someone help me to achieve this?
Thanks.
I added tokens or strings with %Sample% in my html file and replaced these strings appropriately using ResourceManager.