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 File??

Include File??

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netquestion
8 Posts 4 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.
  • H Offline
    H Offline
    hxxbin
    wrote on last edited by
    #1

    Hi Trying to convert (or Translated) my ASP web site to ASP.NET. I found that I don't have include directive, so I make a little functions, by FileStream to Add content from another file. Works fine, but I was wonder if someone knows a better way to make a include. :confused:

    S P 2 Replies Last reply
    0
    • H hxxbin

      Hi Trying to convert (or Translated) my ASP web site to ASP.NET. I found that I don't have include directive, so I make a little functions, by FileStream to Add content from another file. Works fine, but I was wonder if someone knows a better way to make a include. :confused:

      S Offline
      S Offline
      Steve McLenithan
      wrote on last edited by
      #2

      hxxbin wrote: but I was wonder if someone knows a better way to make a include It's called CodeBehind. You're in the OOP world now:-D

      // Steve McLenithan

      Cluelessnes:
         There are no stupid questions, but there are a lot of inquisitive idiots.

      H 1 Reply Last reply
      0
      • S Steve McLenithan

        hxxbin wrote: but I was wonder if someone knows a better way to make a include It's called CodeBehind. You're in the OOP world now:-D

        // Steve McLenithan

        Cluelessnes:
           There are no stupid questions, but there are a lot of inquisitive idiots.

        H Offline
        H Offline
        hxxbin
        wrote on last edited by
        #3

        But the CodeBehind directive it's to include the source code into the aspx??, I don't need that, I need for example include a html with the nav bar, like if I used an IFRAME. How I could do? ---- hxxbin

        S 1 Reply Last reply
        0
        • H hxxbin

          Hi Trying to convert (or Translated) my ASP web site to ASP.NET. I found that I don't have include directive, so I make a little functions, by FileStream to Add content from another file. Works fine, but I was wonder if someone knows a better way to make a include. :confused:

          P Offline
          P Offline
          Paul Watson
          wrote on last edited by
          #4

          You can create your own user controls and split up the pages that way. regards, Paul Watson Bluegrass South Africa Brian Welsch wrote: "blah blah blah, maybe a potato?" while translating my Afrikaans. Crikey! ain't life grand? Einstein says...

          H 1 Reply Last reply
          0
          • H hxxbin

            But the CodeBehind directive it's to include the source code into the aspx??, I don't need that, I need for example include a html with the nav bar, like if I used an IFRAME. How I could do? ---- hxxbin

            S Offline
            S Offline
            Steve McLenithan
            wrote on last edited by
            #5

            Like Paul said UserControls are the way to go:)

            // Steve McLenithan

            Cluelessnes:
               There are no stupid questions, but there are a lot of inquisitive idiots.

            1 Reply Last reply
            0
            • P Paul Watson

              You can create your own user controls and split up the pages that way. regards, Paul Watson Bluegrass South Africa Brian Welsch wrote: "blah blah blah, maybe a potato?" while translating my Afrikaans. Crikey! ain't life grand? Einstein says...

              H Offline
              H Offline
              hxxbin
              wrote on last edited by
              #6

              Thanks, I'll look into user controls. ---- hxxbin

              M 1 Reply Last reply
              0
              • H hxxbin

                Thanks, I'll look into user controls. ---- hxxbin

                M Offline
                M Offline
                Manster
                wrote on last edited by
                #7

                Hi, I'm new to ASP.NET as well and I'm trying to figure out the same thing regarding include files. If you figure it out please let me know and I'll do the same. Thanks ;)

                H 1 Reply Last reply
                0
                • M Manster

                  Hi, I'm new to ASP.NET as well and I'm trying to figure out the same thing regarding include files. If you figure it out please let me know and I'll do the same. Thanks ;)

                  H Offline
                  H Offline
                  hxxbin
                  wrote on last edited by
                  #8

                  Yeah, I'm tired now, but tomorrow I'll look ---- hxxbin

                  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