Description: RadEditor's TemplateManager adds a non-existing template into RadEditor.
Problem: The application has a save function that captures RadEditor1's content into an HTML file, "test.html", on the local disk. This file is saved into "~/Templates/test.html". The problem occurs when test.html is edited and reloaded; TemplateManager somehow stores the first copy of test.html and keeps loading it whenever a file named test.html is opened by TemplateManager. test.html can be edited through RadEditor, or Notepad, or even deleted and re-created, but TemplateManager still opens the original copy(which has been deleted and re-created and formatted differently than before).
Code:
[ASPX]
<
TemplateManager ViewPaths="~/Templates" />
[C#]
if
(e.Argument == "Save")
{
using (StreamWriter saveFile = new StreamWriter(this.MapPath(path), false))
{
saveFile.Write(RadEditor1.Content);
}
}
Any help will be greatly appreciated.
Thank you