Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
hi
 
how to access all controls of any webpage in iframe in asp.net using c#
 
thank u
 
i use other site in iframe which is use on my page and how to find other site controls in my iframe,
 
for example , gmail login page is loagin in my iframe and how to get control of gmail login page in my website,
Posted 6-Dec-12 23:25pm
Edited 6-Dec-12 23:36pm
v2
Comments
choudhary.sumit at 7-Dec-12 5:28am
   
wat you mean by access all controls? explain in detail..
Krunal Rohit at 7-Dec-12 5:33am
   
Any efforts so far ??
Jaypal@18 at 7-Dec-12 5:41am
   
ya , i am using webbrowser.document.getelementsbytagname("input") in htmlElementCollection but its not working
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

If u succeed in what you are trying to achieve, tell us all. That way we all can know the user ids and password of all gmail users...
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

First create normal aspx page then call iframe like
 
<iframe id="sample" frameborder="0" src="YourPageName.aspx" height="300px" style="width: 100%;" scrolling="auto"></iframe>;
 

Then you call the iFrame Contents through javascript.
 
For Example i am using upload control inside the iFrame page. I access the control using client side code
 
var iFrameId = document.getElementById('sample');
// following will work on same domain (or subdomain with document.domain set) only
var fraContent = iFrameId.contentDocument || iFrameId.contentWindow.document;
var uploadTxt = fraContent.getElementById('FU_ReplyMail').value;
  Permalink  
v2

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

  Print Answers RSS
0 OriginalGriff 330
1 Richard Deeming 240
2 Nirav Prabtani 212
3 CHill60 170
4 _Amy 165
0 OriginalGriff 8,104
1 Sergey Alexandrovich Kryukov 7,045
2 Maciej Los 4,039
3 Peter Leow 3,738
4 CHill60 2,912


Advertise | Privacy | Mobile
Web02 | 2.8.140721.1 | Last Updated 7 Dec 2012
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