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. Response.Redirect() to a different frame

Response.Redirect() to a different frame

Scheduled Pinned Locked Moved ASP.NET
questionc++tutorial
2 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.
  • G Offline
    G Offline
    Groovomaniak
    wrote on last edited by
    #1

    Does anyone know how to redirect to a page in such way that it appears in a particular frame () in the frameset? Details of my question: If I use Response.Redirect("Page2.aspx") from Page1's code, Page2.aspx always appears in the same frame as Page1. My objective is to continue displaying Page1.aspx in its native frame while showing Page2 in a different frame within the same browser window. My deepest regards in advance, Kirill

    F 1 Reply Last reply
    0
    • G Groovomaniak

      Does anyone know how to redirect to a page in such way that it appears in a particular frame () in the frameset? Details of my question: If I use Response.Redirect("Page2.aspx") from Page1's code, Page2.aspx always appears in the same frame as Page1. My objective is to continue displaying Page1.aspx in its native frame while showing Page2 in a different frame within the same browser window. My deepest regards in advance, Kirill

      F Offline
      F Offline
      fadee
      wrote on last edited by
      #2

      hmmm... Response.Redirect send the redirection instructions for the respective page only. Whenever a browser encounters a page containing frames, it reads the sources of frames and then request them separately. During request, if it gets redirection instruction, it changes the source and palce the new page. You can use JavaScript to complete this tast. The script may look like... window.frames("FRAME_NAME").document.location = "new_page.aspx"; or window.frames("FRAME_NAME").src = "new_page.aspx"; or window.frames("FRAME_NAME").source = "new_page.aspx"; or window.frames("FRAME_NAME").location = "new_page.aspx"; I can't remember the exact code, please try both... eff_kay ------------------- Therez No Place like ... 127.0.0.1

      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