0

I am Trying to display a website portion on my web page.and for this i dnt want to use iframe.But any other idea which can get data from a website and then display it on my web page like. this is website http://www.sugaronline.com/

and want to display this portion on m y web page

https://i.stack.imgur.com/CVsrh.jpg

Please any one tell me is there any way to do this except using iframe?

Update

 Shared Function GetHtmlPage(ByVal strURL As String) As String
        Dim strResult As String
        Dim objResponse As WebResponse
        Dim objRequest As WebRequest = HttpWebRequest.Create(strURL)
        objResponse = objRequest.GetResponse()
        Using sr As New StreamReader(objResponse.GetResponseStream())
            strResult = sr.ReadToEnd()
            sr.Close()
        End Using
        Return strResult
    End Function

Dim responses As String = GetHtmlPage(theurl)
user1820339
  • 25
  • 1
  • 10

2 Answers2

0

If you are using PHP, try using CURL, it is a server side request which fetches the data from the target site and then you can embed it in your page.

On the other hand, if you are using .Net, you can use httpwebrequest to do the same.

In short, you will have to make a server side request from your server to the target website to fetch the data and you can embed that data on your page as if it has come from your website.

Please check out this post

How to use httpwebrequest to pull image from website to local file

Here all you need to do is

when you have the image bytes ready, you need to write those bytes to response but before that, you will have to send proper headers to let the browser understand that you are now going to send the image.

Community
  • 1
  • 1
Murtuza Kabul
  • 6,438
  • 6
  • 27
  • 34
0

Refer existing posts

Using HTTPWebRequest in ASP.NET VB

or simply Google this

Community
  • 1
  • 1
Murali Murugesan
  • 22,423
  • 17
  • 73
  • 120
  • Please View My Upate I do that but Question is that now how can i diplay like http://i.stack.imgur.com/CVsrh.jpg ? – user1820339 Nov 16 '12 at 05:51