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.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Scott LyslePosted Sep 8, 2007, 6:44 AM
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();