.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

Viewing source of frames using asp.net

Posted By: Naresh     Posted Date: September 22, 2010    Points:2   Category :C#
Hi,

I need to get the source page of the frame in a string.
Iam extracting data from a webpage ,where it has two frames,
i need to get the source page of the second frame.

I tried the below coading,

string s
s=webBrowser1.Document.Window.Frames[0].Document.Body.InnerHtml;

The above coading works fine for frame one,

But if i use
s=webBrowser1.Document.Window.Frames[1].Document.Body.InnerHtml;

I get the following error,

" Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))"

I have only two frames in the webpage


Thanks in Advance
Iam using C# .net

Responses
Author: Narayanan             
Posted Date: October 13, 2011     Points: 20   

Hi,
refer this forum
http://bytes.com/topic/visual-basic-net/answers/507666-webbrowser1-documenttext

Regards, Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend