K
Ken Fine
I have a question about ASP.NET output caching.
I want to use screen scraping as a temporary hack to pull in some complex
Classic ASP-rendered content into some ASP.NET pages:
protected String ReadHtmlPage(string url)
{
WebResponse objResponse;
WebRequest objRequest = System.Net.HttpWebRequest.Create(url);
objResponse = objRequest.GetResponse();
StreamReader sr = new StreamReader(objResponse.GetResponseStream());
return sr.ReadToEnd();
}
I am wondering if ASP.NET output caching will also cache what's pulled via
this method (I am hoping so; if not, I don't think this will be sufficiently
performant.)
Thanks,
-KF
I want to use screen scraping as a temporary hack to pull in some complex
Classic ASP-rendered content into some ASP.NET pages:
protected String ReadHtmlPage(string url)
{
WebResponse objResponse;
WebRequest objRequest = System.Net.HttpWebRequest.Create(url);
objResponse = objRequest.GetResponse();
StreamReader sr = new StreamReader(objResponse.GetResponseStream());
return sr.ReadToEnd();
}
I am wondering if ASP.NET output caching will also cache what's pulled via
this method (I am hoping so; if not, I don't think this will be sufficiently
performant.)
Thanks,
-KF