Thursday, April 29, 2010

Getting HTML page content with streme reader class in Asp.net

string content = Server.MapPath("html Page name");
StreamReader Reader;
Reader = File.OpenText(content);
string str = Reader.ReadToEnd();
(ID of tag).(related Property) = str;
Reader.Close();