private void LoadStatement()
{
try
{
//Open a file for reading
string FILENAME= Server.MapPath("ics.htm");
StreamReader objStreamReader = File.OpenText(FILENAME);
string contents= objStreamReader.ReadToEnd();
objStreamReader.Close();
contents = contents.Replace("<br /><br />", "\n");
contents = contents.Replace("<br />", "\n");
contents = RemoveHTML(contents);
string strAgreement = "Independent Contractor Statement \r\n \r\n"+ contents;
txtAgreement.Text = strAgreement;
}
catch{}
}
Click here to see code in VB
{
try
{
//Open a file for reading
string FILENAME= Server.MapPath("ics.htm");
StreamReader objStreamReader = File.OpenText(FILENAME);
string contents= objStreamReader.ReadToEnd();
objStreamReader.Close();
contents = contents.Replace("<br /><br />", "\n");
contents = contents.Replace("<br />", "\n");
contents = RemoveHTML(contents);
string strAgreement = "Independent Contractor Statement \r\n \r\n"+ contents;
txtAgreement.Text = strAgreement;
}
catch{}
}
Click here to see code in VB