Click here to Skip to main content
11,637,662 members (70,269 online)
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 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
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  

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 344
1 OriginalGriff 295
2 stibee 288
3 jyo.net 270
4 himanshu agarwal 189
0 OriginalGriff 9,031
1 Sergey Alexandrovich Kryukov 8,763
2 Mika Wendelius 6,999
3 F-ES Sitecore 2,388
4 Suvendu Shekhar Giri 2,320


Advertise | Privacy | Mobile
Web04 | 2.8.150728.1 | Last Updated 7 Dec 2012
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