Master Page problem
-
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
-
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
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"
-
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"
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
-
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
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?
-
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?
-
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
Have you considered having your line diagram page in an iframe?
-
Have you considered having your line diagram page in an iframe?
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
-
Have you considered having your line diagram page in an iframe?