Replacing the line in the string with file contents
Posted on 2014-01-08
I am trying to read a string(it has HTML content) in the .Net application.
Whenever <!--#include file= is found (Ex: <!--#include file="../search/SearchInfo.aspx" -->) I will read the SearchInfo.aspx page contents and replace this line(<!--#include file="../search/SearchInfo.aspx") with the actual SearchInfo page contents.I have 5 to 6 <!--#include file in the string.
Please let me know the good and easy way to do this.