Click here to Skip to main content
15,892,809 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have got an i Frame.It's src is set from in pageload.I need to read the html source of the frame in order to get some data s.How can i implement this.I tried the following code but of no use.Is there any way?

Pageload

XML
Pageload
frameHoroscope.Attributes.Add("src", "");
Readdata();

void Readdata()
    {
        string data = frameHoroscope.InnerHtml;
     }
Posted

1 solution

Hi @deepak

You can try this
frameHoroscope.Attributes.Add("src", "pagename.aspx");

You can set the page name after the source and process the mathod on this page(pagename.aspx)whatever you want.

Hope it will help you

Thanks
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900