hi friends,
I am getting problem in opening iframe into popup screen using modal pop up..\
Following is the code i used.
It give me console error:
"Error: document.getElementById("ctl00_cphMain_iframeAddDetail") is null"
plz help..
function newwindow()
{
$find('mpeAddDetail').show();
var pageName ="AddSupprtCallDetail.aspx";
document.getElementById("iframeAddDetail").src = pageName;
return false;
}
--
BehaviorID="mpeAddDetail" PopupControlID="dialog" DropShadow="true" BackgroundCssClass="modalBackground" runat="server">
--
Thanks
Yashvant
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

CrishRank #1,486 · 1.1K reputationPosted May 17, 2010, 8:45 AM EDT
use below code for your solution
document.getElementById('iframeAddDetail').src = "AddSupprtCallDetail.aspx";
Don't forget to Mark Do you like this Answer that solved your problem!