include aspx file
-
hey i need to know how i can include a file aspx ( some people tell me response.writefile(filename) but it did'nt work coz it used just for html page ) 10x for help DADAX
dadax_85 wrote:
i need to know how i can include a file aspx
What do you mean by this - include where? If you mean a code-behind file, then use the CodeFile attribute of the Page "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox
-
hey i need to know how i can include a file aspx ( some people tell me response.writefile(filename) but it did'nt work coz it used just for html page ) 10x for help DADAX
Hi there, In the old days of the classic ASP, you would normally use the include method to include the file, however it's no longer supported in the ASP.NET, and it provides a couple of alternatives: + You can convert the aspx file to the web user control, then simply add it to the web page. + You can use the Master page (with the ASP.NET 2.0). + You can use the Server.Execute[^] method to execute the aspx file, then add the result markup to the output stream of the Response object. Just some ideas.