Hi,
I was trying to use ASP Page Caching with Application Object ...
Reading the ASP Page into a File and copying into Application Object
---------------------------------------
Code :: GLOBAL.asa
Set fso = CreateObject("Scripting.FileSystemObject")
set pagetext = fso.GetFile(Server.MapPath("MainLogin_0.asp"))
set ts = pagetext.OpenAsTextStream(1,-2)
Do while not ts.AtEndOfStream
sWebPage = sWebPage & ts.readline & Chr(10)
Loop
' And finally we set variable to our web page variable
Application("cached.asp") = sWebPage
-----------------------------------------
Then in MainLogin.asp I have ::
Just Writing the Application Object in the MainLogin File
<%
Response.Buffer = True
Response.ContentType = "text/html"
Response.Write Application("cached.asp")%>
-----------------------------------------
But my MainLogin.asp, always gives a Blank File.
Any Idea why this would happen. Or does any know any other way of
caching ASP Web-Pages that contain "Includes".
Thanks,
--
Mingle
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/