Click here to Skip to main content
11,926,961 members (50,107 online)
Rate this:
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
Karthik Harve 19-Feb-13 4:24am
are you trying to show details of some other screen, in modal popup using iframe ?
nil1385 19-Feb-13 4:26am
yes in the iframe I Open(load) another aspx page details

1 solution

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

Solution 1


Instead of "IFrame" in modal popup, i suggest to go for showModalDialog" feature.

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.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.151126.1 | Last Updated 19 Feb 2013
Copyright © CodeProject, 1999-2015
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