Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET IFrame
Hello all
 
I am creating modelpop-up in Iframe (my project needs it)
 
But i watched one surprised scenario
 
when ever my I frame opens, the CPU Usages touches almost over 90%!! ,and when i closed it the Iframe again its(cpu usage) come arround 5-6 %.
 
Has any body has Idea why this is happening
Posted 18-Feb-13 23:06pm
nil1385261
Comments
Karthik Harve at 19-Feb-13 4:24am
   
are you trying to show details of some other screen, in modal popup using iframe ?
nil1385 at 19-Feb-13 4:26am
   
yes in the iframe I Open(load) another aspx page details

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Hi,
 
Instead of "IFrame" in modal popup, i suggest to go for showModalDialog" feature.
showModalDialog[^]
 
so, on client click of any button/ link (as you were using target control for modal popup), add below code.
function openWindow()
{
    return window.showModalDialog(url);
}
So, this will open the screen specified in url as modal dialog. the previous screen controls are not accessible.
 
you can keep one button in that new screen, and on client click of the add below code.
function CloseWindow()
{
    return window.close();
}
this will close the modal dialog.
 
like this you can avoid the use of IFrame and this is once of the options using which you can avoid it and also you can achieve modality.
 
hope it helps.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 230
1 PIEBALDconsult 150
2 DamithSL 125
3 BillWoodruff 108
4 Garth J Lancaster 90
0 OriginalGriff 5,790
1 DamithSL 4,601
2 Maciej Los 4,012
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,195


Advertise | Privacy | Mobile
Web02 | 2.8.141220.1 | Last Updated 19 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100