Close iframe in Div
-
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.
// 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 :(
-
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.
// 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 :(
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)