Wednesday, August 11, 2010

How to display the output of an asp file in another file?

Say I have a file named


';helloWorld.asp';


%26lt;% response.write(';Hello World!';)%%26gt;





how will i get the output of that asp file in another asp file?How to display the output of an asp file in another file?
The OtherFile.asp will have the ';Hello World!'; text at the top of it. You might want to use subs and functions if you want to control when/how you want data to output.





----------------------------------


helloWorld.asp:


----------------------------------


%26lt;% Response.Write(';Hello World!';) %%26gt;





----------------------------------


OtherFile.asp:


----------------------------------


%26lt;!-- #include file=';helloWorld.asp'; --%26gt;


%26lt;% Response.Write(';Goodbye, World!';) %%26gt;How to display the output of an asp file in another file?
Have the asp file open another asp file for output and write to it.

No comments:

Post a Comment