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. Iframe or similar

Iframe or similar

Scheduled Pinned Locked Moved ASP.NET
questionhtml
4 Posts 2 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.
  • B Offline
    B Offline
    benqazou
    wrote on last edited by
    #1

    Hi, How can I programmatically change the Src property of an HTML IFrame?? If it's impossible, have you got any other hint for doing something similar (ie. display a web page inside another with the possiblity of manipulating its source)? Thanks a lot!

    M 1 Reply Last reply
    0
    • B benqazou

      Hi, How can I programmatically change the Src property of an HTML IFrame?? If it's impossible, have you got any other hint for doing something similar (ie. display a web page inside another with the possiblity of manipulating its source)? Thanks a lot!

      M Offline
      M Offline
      Marcus J Smith
      wrote on last edited by
      #2

      You can use a Web User Control which is an ascx file. This is the replacement for frames. You create your various web user controls and then say you use a table on the main page. You just create an extra column or whatever to hold this and just drag it over to that column. This can also be changed Im sure at runtime. You can also change what is displayed whether it be dynamically created or just loaded from a text file on the user control itself through something like session variables. There are various ways of communicating b/t the web user control and the actual page and if you search you will find many ways of accessing things through the pages just like frames. Cleako

      B 1 Reply Last reply
      0
      • M Marcus J Smith

        You can use a Web User Control which is an ascx file. This is the replacement for frames. You create your various web user controls and then say you use a table on the main page. You just create an extra column or whatever to hold this and just drag it over to that column. This can also be changed Im sure at runtime. You can also change what is displayed whether it be dynamically created or just loaded from a text file on the user control itself through something like session variables. There are various ways of communicating b/t the web user control and the actual page and if you search you will find many ways of accessing things through the pages just like frames. Cleako

        B Offline
        B Offline
        benqazou
        wrote on last edited by
        #3

        Thanks, The question is : will a user control give the opportunity to display another whole web page in it, and without another iframe in it??? If so, I would like to know how? Thanks.

        M 1 Reply Last reply
        0
        • B benqazou

          Thanks, The question is : will a user control give the opportunity to display another whole web page in it, and without another iframe in it??? If so, I would like to know how? Thanks.

          M Offline
          M Offline
          Marcus J Smith
          wrote on last edited by
          #4

          From what I understand - the web user control allows you to put whatever you want in it. You can put a simple link list to the left of the page or you could have a header or an entire page if that is what you want. Just add the web user control to the project and do what you would to any other page to it and then just move it over to the page you want the frame on. This may not do what you are looking for, I dont know for sure but it is a good way to utilize common elements even if they change page to page. Cleako

          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