Iframe load page load multiple times

Posted by Vforvijay under ASP.NET on 8/4/2014 | Points: 10 | Views : 1192 | Status : [Member] | Replies : 2
Hello I have a default.aspx page with which has an iframe. In the code-behind of the default.aspx page it loads the 'src' attribute of the iframe. The iframe loads another aspx page, but when it loads the Page_Load method is called multiple times. In some situations the page is called twice and in others it is called 4 times. any ideas what might be going on here




Responses

Posted by: Sheonarayan on: 8/4/2014 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
See the source code of the parent page (where the iframe is being called), possibly you are calling the iframe multiple times.

Or are you calling the iframepage.aspx within the iframe page itself either by hard coding or through javascript?

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Vforvijay, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vforvijay on: 8/4/2014 [Member] Starter | Points: 25

Up
0
Down
sir,
if i pass the url using javascript its workign fine..but if i try to pass the url from code behind..Its calling multiple times


Vforvijay, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response