HI......evrybody.
some one tell me how to convert an aspx page into text stream,actually after conversion I have to replace some special tags in the aspx page with values from an xml file.
Conversion to text stream
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Scott LysleRank #49 · 31K reputationPosted Sep 8, 2007, 2:44 AM EDT
Add
using System.IO;
In below, pass filePath as the location of the aspx page. Once populated, the string sAspx will contain the text from the aspx page.
FileStream fs = new FileStream(filePath, FileMode.Open); StreamReader sr = new StreamReader(fs); string sAspx = sr.ReadToEnd();