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. Open HTML Pages in ASP.NET

Open HTML Pages in ASP.NET

Scheduled Pinned Locked Moved ASP.NET
csharphtmlasp-nettutorial
6 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
    deepaks3
    wrote on last edited by
    #1

    Hi, I have some static pages in my application, and i want to open those static pages in the Master page. i want to do so b'coz my static page content keeps on changing, so if i use an HTML page i will not have to re-complie the application. So i want to know how to load that HTML page in some contentplaeholder or may be some other control. Please suggest some another way also if u have it in your mind and may be useful to me. Thanks,

    Deepak Surana

    M 1 Reply Last reply
    0
    • D deepaks3

      Hi, I have some static pages in my application, and i want to open those static pages in the Master page. i want to do so b'coz my static page content keeps on changing, so if i use an HTML page i will not have to re-complie the application. So i want to know how to load that HTML page in some contentplaeholder or may be some other control. Please suggest some another way also if u have it in your mind and may be useful to me. Thanks,

      Deepak Surana

      M Offline
      M Offline
      Mazdak
      wrote on last edited by
      #2

      I had the problem like this and laod the file with File.ReadAllText method and put a Label on the page(or Masterpage ) , then set Label.Text to that string. You can also user Literal Control or some other control I guess.

      Mazy
      "This chancy chancy chancy world....."

      D A 2 Replies Last reply
      0
      • M Mazdak

        I had the problem like this and laod the file with File.ReadAllText method and put a Label on the page(or Masterpage ) , then set Label.Text to that string. You can also user Literal Control or some other control I guess.

        Mazy
        "This chancy chancy chancy world....."

        D Offline
        D Offline
        deepaks3
        wrote on last edited by
        #3

        Thanks a lot. Nice suggestion. I hope it works perfectly.

        Deepak Surana

        1 Reply Last reply
        0
        • M Mazdak

          I had the problem like this and laod the file with File.ReadAllText method and put a Label on the page(or Masterpage ) , then set Label.Text to that string. You can also user Literal Control or some other control I guess.

          Mazy
          "This chancy chancy chancy world....."

          A Offline
          A Offline
          Abolfazl Sheikhloo
          wrote on last edited by
          #4

          please say me are u from persian. ایا شما ایرانی هستید؟

          We Can Do Anything, If We Want It

          D M 2 Replies Last reply
          0
          • A Abolfazl Sheikhloo

            please say me are u from persian. ایا شما ایرانی هستید؟

            We Can Do Anything, If We Want It

            D Offline
            D Offline
            deepaks3
            wrote on last edited by
            #5

            no... but why.

            Deepak Surana

            1 Reply Last reply
            0
            • A Abolfazl Sheikhloo

              please say me are u from persian. ایا شما ایرانی هستید؟

              We Can Do Anything, If We Want It

              M Offline
              M Offline
              Mazdak
              wrote on last edited by
              #6

              I am.

              Mazy
              "This chancy chancy chancy world."

              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