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. General Programming
  3. C#
  4. Close iframe in Div

Close iframe in Div

Scheduled Pinned Locked Moved C#
questioncsharp
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.
  • S Offline
    S Offline
    SatyaKeerthi15
    wrote on last edited by
    #1

    I have an aspx page. In that page I am displaying div when click on link. Div contains iframe and i am assigning url to the frame like below.

    X

    // Function to Show the Div // function ShowDiv(CtrlName) { document.getElementById('divUserCtrl').style.display = 'inline'; frames['ifrm'].window.location = "CreateProject.aspx?ProjCat=G"; return false; } when click on linkbutton can able to display div and redircting to CreateProject page. But in CreateProject when click on a button i need to close this div. How can I do this in c#. I tried like Page.RegisterStartupScript("Reload", "window.close();"); But no luck :(

    D 1 Reply Last reply
    0
    • S SatyaKeerthi15

      I have an aspx page. In that page I am displaying div when click on link. Div contains iframe and i am assigning url to the frame like below.

      X

      // Function to Show the Div // function ShowDiv(CtrlName) { document.getElementById('divUserCtrl').style.display = 'inline'; frames['ifrm'].window.location = "CreateProject.aspx?ProjCat=G"; return false; } when click on linkbutton can able to display div and redircting to CreateProject page. But in CreateProject when click on a button i need to close this div. How can I do this in c#. I tried like Page.RegisterStartupScript("Reload", "window.close();"); But no luck :(

      D Offline
      D Offline
      DaveyM69
      wrote on last edited by
      #2

      You may get an answer here but you will be more likely to succeed here[^]. If you decide to post there, link to your question above so you don't get flamed for cross posting!

      Dave

      If this helped, please vote & accept answer!

      Binging is like googling, it just feels dirtier. Please take your VB.NET out of our nice case sensitive forum.(Pete O'Hanlon)
      BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)

      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