Click here to Skip to main content
11,705,610 members (46,921 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#3.0
Haii All,

How can I know that an iframe has finished loading or not in web browser control?
can anyone explain(Windows Application).



Thanks,
Anvesh
Posted 21-Jan-13 22:53pm
Edited 21-Jan-13 22:56pm
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

You can quite easily do this via Javascript -
<script>
document.getElementById("myframe").onload = function() {
  alert("myframe is loaded");
};
</script>
  Permalink  
Comments
a.anvesh at 22-Jan-13 4:56am
   
can u please tell me in windows application.
Abhinav S at 22-Jan-13 5:47am
   
IFrame is a client side control...so you are not going to have an opportunity to do much on the server side.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Please review the following link

http://stackoverflow.com/questions/2777878/detect-webbrowser-complete-page-loading[^]

I think this is what you are looking for.

Happy Programming

Smile | :)
  Permalink  
Comments
a.anvesh at 22-Jan-13 5:09am
   
sorry Avishek,

I tried that above link but am unable to find IFrame content data

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

  Print Answers RSS
0 OriginalGriff 229
1 Sergey Alexandrovich Kryukov 100
2 Inimicos 60
3 ProgramFOX 50
4 Richard MacCutchan 45
0 OriginalGriff 9,053
1 Sergey Alexandrovich Kryukov 8,347
2 CPallini 5,189
3 Maciej Los 4,726
4 Mika Wendelius 3,626


Advertise | Privacy | Mobile
Web04 | 2.8.150819.1 | Last Updated 22 Jan 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