Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. include aspx file

include aspx file

Scheduled Pinned Locked Moved ASP.NET
htmlhelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dadax_85
    wrote on last edited by
    #1

    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

    R M 2 Replies Last reply
    0
    • D dadax_85

      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

      R Offline
      R Offline
      RichardGrimmer
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • D dadax_85

        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

        M Offline
        M Offline
        minhpc_bk
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups