Development ASP.Net Tutorial

<%@ Page Language="VB" %>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Net" %>


    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
        Dim uri As New Uri("http://www.amazon.com/" )
        Dim data As String = ""
        If (uri.Scheme = uri.UriSchemeHttp) Then
            Dim request As HttpWebRequest = HttpWebRequest.Create(uri)
            request.Method = WebRequestMethods.Http.Post
            request.ContentLength = data.Length
            request.ContentType = "application/x-www-form-urlencoded"
            Dim writer As New StreamWriter(request.GetRequestStream())
            writer.Write(data)
            writer.Close()
            Dim response As HttpWebResponse = request.GetResponse()
            Dim reader As New StreamReader(response.GetResponseStream())
            Dim tmp As String = reader.ReadToEnd()
            response.Close()
            
            Me.Panel1.GroupingText = tmp
        End If
    End Sub



    Untitled Page


    
    

                    Height="355px" Width="480px" ScrollBars="Auto">