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. Master Page problem

Master Page problem

Scheduled Pinned Locked Moved ASP.NET
helpalgorithmsquestion
8 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.
  • G Offline
    G Offline
    Gretna
    wrote on last edited by
    #1

    Has been a while since i have had any problems and with what i'm doing but today i'm stumped. I pretty much finished al lthe pages I needed and a lot of them are pages that once loaded will display an image usuall a line diagram that is created in the code file. I've been slowly sorting out the navigation and I was looking into using a master page to stay the same on all the pages with then the content changing when the user selcects an option. I can get the master page set up and the layout I want but when i go to display one of this diagrams that I have created in another page it appears and the layout of the master page has gone. Is there anyway that I can get around this. Any help is always appreciated. Gretna

    "When will I learn? The answers to life's problems aren't at the bottom of a bottle. They're on TV" - Homer Simpson

    E 1 Reply Last reply
    0
    • G Gretna

      Has been a while since i have had any problems and with what i'm doing but today i'm stumped. I pretty much finished al lthe pages I needed and a lot of them are pages that once loaded will display an image usuall a line diagram that is created in the code file. I've been slowly sorting out the navigation and I was looking into using a master page to stay the same on all the pages with then the content changing when the user selcects an option. I can get the master page set up and the layout I want but when i go to display one of this diagrams that I have created in another page it appears and the layout of the master page has gone. Is there anyway that I can get around this. Any help is always appreciated. Gretna

      "When will I learn? The answers to life's problems aren't at the bottom of a bottle. They're on TV" - Homer Simpson

      E Offline
      E Offline
      eyeseetee
      wrote on last edited by
      #2

      Are these diagrams created in the class behind file for the content pages? So basically when one of these diagrams loads you lose all the masterpage layout? or it appears wrong? Can you provide a bit more detail about how these diaggrams are created?

      Deliver yesterday, code today, think tomorrow. "http://www.heuse.com/cphumor.htm"

      G 1 Reply Last reply
      0
      • E eyeseetee

        Are these diagrams created in the class behind file for the content pages? So basically when one of these diagrams loads you lose all the masterpage layout? or it appears wrong? Can you provide a bit more detail about how these diaggrams are created?

        Deliver yesterday, code today, think tomorrow. "http://www.heuse.com/cphumor.htm"

        G Offline
        G Offline
        Gretna
        wrote on last edited by
        #3

        That is indeed correct, sorry for the lack of clarity. The diagrams are all created using the Graphics and Bitmap objects respectivly in the class behind file for the content pages. Draws all the lines using the Graphics object and then:

        bmp.Save(Response.OutputStream, ImageFormat.Jpeg);

        .netman wrote:

        So basically when one of these diagrams loads you lose all the masterpage layout?

        Yeah the master page layout goes and it just shows the diagram. Cheers

        "When will I learn? The answers to life's problems aren't at the bottom of a bottle. They're on TV" - Homer Simpson

        P 1 Reply Last reply
        0
        • G Gretna

          That is indeed correct, sorry for the lack of clarity. The diagrams are all created using the Graphics and Bitmap objects respectivly in the class behind file for the content pages. Draws all the lines using the Graphics object and then:

          bmp.Save(Response.OutputStream, ImageFormat.Jpeg);

          .netman wrote:

          So basically when one of these diagrams loads you lose all the masterpage layout?

          Yeah the master page layout goes and it just shows the diagram. Cheers

          "When will I learn? The answers to life's problems aren't at the bottom of a bottle. They're on TV" - Homer Simpson

          P Offline
          P Offline
          Paddy Boyd
          wrote on last edited by
          #4

          I think that what you are doing here is changing the response to just show the created bitmap and clearing any other html. If you view the source of your page what do you see?

          G 1 Reply Last reply
          0
          • P Paddy Boyd

            I think that what you are doing here is changing the response to just show the created bitmap and clearing any other html. If you view the source of your page what do you see?

            G Offline
            G Offline
            Gretna
            wrote on last edited by
            #5

            I thought this might be the case but can't find another way to get the image to display. The source for this is as follows: "When will I learn? The answers to life's problems aren't at the bottom of a bottle. They're on TV" - Homer Simpson

            P 1 Reply Last reply
            0
            • G Gretna

              I thought this might be the case but can't find another way to get the image to display. The source for this is as follows: "When will I learn? The answers to life's problems aren't at the bottom of a bottle. They're on TV" - Homer Simpson

              P Offline
              P Offline
              Paddy Boyd
              wrote on last edited by
              #6

              Have you considered having your line diagram page in an iframe?

              G 2 Replies Last reply
              0
              • P Paddy Boyd

                Have you considered having your line diagram page in an iframe?

                G Offline
                G Offline
                Gretna
                wrote on last edited by
                #7

                No to be honest I had no idea what an iframe was, but just googled it and it looks like it could be possible so I'm now going to try uto use that and see what the outcome is. Thank you for the suggestion. Gretna

                "When will I learn? The answers to life's problems aren't at the bottom of a bottle. They're on TV" - Homer Simpson

                1 Reply Last reply
                0
                • P Paddy Boyd

                  Have you considered having your line diagram page in an iframe?

                  G Offline
                  G Offline
                  Gretna
                  wrote on last edited by
                  #8

                  Seems to work how I want it thank for the help. :-D

                  "When will I learn? The answers to life's problems aren't at the bottom of a bottle. They're on TV" - Homer Simpson

                  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