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. load a page within a page

load a page within a page

Scheduled Pinned Locked Moved ASP.NET
javascripthelpquestion
11 Posts 5 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.
  • F Offline
    F Offline
    flickerslair
    wrote on last edited by
    #1

    I have a set of images on a page which all have onclick events attached to them. But I need the javascript to load an aspx page within my existing page without any reloads, or affecting the existing content. Can anyone help?

    G 1 Reply Last reply
    0
    • F flickerslair

      I have a set of images on a page which all have onclick events attached to them. But I need the javascript to load an aspx page within my existing page without any reloads, or affecting the existing content. Can anyone help?

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      Use an iframe. --- b { font-weight: normal; }

      F 2 Replies Last reply
      0
      • G Guffa

        Use an iframe. --- b { font-weight: normal; }

        F Offline
        F Offline
        flickerslair
        wrote on last edited by
        #3

        this message originally asked a question about making the page load in the iframe, but it was a typo. I have suceeded in getting the iframe to be loaded. But ... although the page loads it does not fire the Page_Load sub. Any ideas? -- modified at 5:57 Friday 13th January, 2006

        _ C 3 Replies Last reply
        0
        • F flickerslair

          this message originally asked a question about making the page load in the iframe, but it was a typo. I have suceeded in getting the iframe to be loaded. But ... although the page loads it does not fire the Page_Load sub. Any ideas? -- modified at 5:57 Friday 13th January, 2006

          _ Offline
          _ Offline
          _NinethSense_
          wrote on last edited by
          #4

          Check this out : http://www.htmlhelp.com/reference/html40/special/iframe.html[^] Also you may check "AJAX" concepts if you wish. PraVeeN NinethSense.com/blog/

          1 Reply Last reply
          0
          • F flickerslair

            this message originally asked a question about making the page load in the iframe, but it was a typo. I have suceeded in getting the iframe to be loaded. But ... although the page loads it does not fire the Page_Load sub. Any ideas? -- modified at 5:57 Friday 13th January, 2006

            C Offline
            C Offline
            Colin Angus Mackay
            wrote on last edited by
            #5

            The thread becomes very confusing if you delete messages asking follow-up questions. ColinMackay.net "Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius "If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell

            F 1 Reply Last reply
            0
            • F flickerslair

              this message originally asked a question about making the page load in the iframe, but it was a typo. I have suceeded in getting the iframe to be loaded. But ... although the page loads it does not fire the Page_Load sub. Any ideas? -- modified at 5:57 Friday 13th January, 2006

              C Offline
              C Offline
              Colin Angus Mackay
              wrote on last edited by
              #6

              And it becomed even more confusing when you replace the deleted message with a completely different question - please reply to the responder as it makes navigating the thread more accessible to others who may have the same problem and are trying to follow the path to the solution. ColinMackay.net "Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius "If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell

              1 Reply Last reply
              0
              • C Colin Angus Mackay

                The thread becomes very confusing if you delete messages asking follow-up questions. ColinMackay.net "Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius "If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell

                F Offline
                F Offline
                flickerslair
                wrote on last edited by
                #7

                When i pressed the button to delete there were no follow-up posts, otherwise I wouldnt have.

                1 Reply Last reply
                0
                • G Guffa

                  Use an iframe. --- b { font-weight: normal; }

                  F Offline
                  F Offline
                  flickerslair
                  wrote on last edited by
                  #8

                  I have suceeded in getting the iframe to be loaded. But ... although the page loads it does not fire the Page_Load sub. Any ideas? Thanks.

                  I 1 Reply Last reply
                  0
                  • F flickerslair

                    I have suceeded in getting the iframe to be loaded. But ... although the page loads it does not fire the Page_Load sub. Any ideas? Thanks.

                    I Offline
                    I Offline
                    Ista
                    wrote on last edited by
                    #9

                    The event fired 1 line of code equals many bugs. So don't write any!!

                    F 1 Reply Last reply
                    0
                    • I Ista

                      The event fired 1 line of code equals many bugs. So don't write any!!

                      F Offline
                      F Offline
                      flickerslair
                      wrote on last edited by
                      #10

                      For testing I commented out all code so the sub page_load only contains a response.write line.

                      I 1 Reply Last reply
                      0
                      • F flickerslair

                        For testing I commented out all code so the sub page_load only contains a response.write line.

                        I Offline
                        I Offline
                        Ista
                        wrote on last edited by
                        #11

                        It still hit it. You need to check your event handlers. you would be better off adding a System.Diagnostics.Debug.WriteLine to see. If its not hitting it then your handler to the event is incorrect. Nick 1 line of code equals many bugs. So don't write any!!

                        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