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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. asp include file in .net

asp include file in .net

Scheduled Pinned Locked Moved ASP.NET
csharpasp-net
4 Posts 2 Posters 1 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.
  • A Offline
    A Offline
    Aubyone
    wrote on last edited by
    #1

    Doing a web site that has asp.net as well as asp. Is it possible to use the asp included files in a asp.net web app. If so what code would you need to use.

    C 1 Reply Last reply
    0
    • A Aubyone

      Doing a web site that has asp.net as well as asp. Is it possible to use the asp included files in a asp.net web app. If so what code would you need to use.

      C Offline
      C Offline
      ChrisAdams
      wrote on last edited by
      #2

      If it's just static html I think you can use the normal shtml include syntax. However if you have asp code in these, then you can't include it into an asp.net - as it would be expecting vb.net code, not VBSCript.

      A 1 Reply Last reply
      0
      • C ChrisAdams

        If it's just static html I think you can use the normal shtml include syntax. However if you have asp code in these, then you can't include it into an asp.net - as it would be expecting vb.net code, not VBSCript.

        A Offline
        A Offline
        Aubyone
        wrote on last edited by
        #3

        Is it possible to use it as a user control ? without transferring code to .net.

        C 1 Reply Last reply
        0
        • A Aubyone

          Is it possible to use it as a user control ? without transferring code to .net.

          C Offline
          C Offline
          ChrisAdams
          wrote on last edited by
          #4

          User controls are a .Net concept so they would require a .net language to be able to compile them. If you really wanted the content, you could create a control that made a web request to the asp page, and then added the content in at it's position within the aspx page, however any content would be outside of the asp.net context and I think you would end up with more problems, than the conversion to .Net would create.

          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