using post method urgently
i have problem to use post method in asp.net.i use following code to post
data to other site.
it send data to other site,but it didn't browse destination site and it is big problem for me.
i surprrised because asp.net should be better than asp ,but??
my code is:
Dim name As String = "Karim"
Dim family As String = "hashemi"
Dim encoding As New System.Text.ASCIIEncoding
Dim Postdata As String
Postdata = "t1=" + name
Postdata += "&t2=" + family
Dim data() As Byte = encoding.GetBytes(Postdata)
Dim sendrequest As Net.HttpWebRequest = sendrequest.Create("http://localhost/AnswerTest/WebForm1.aspx")
sendrequest.Method = "POST"
sendrequest.AllowAutoRedirect = True
sendrequest.Referer = "http://localhost/AnswerTest/WebForm1.aspx"
sendrequest.ContentType = "application/x-www-form-urlencoded"
sendrequest.ContentLength = data.Length
Dim httStream As IO.Stream = sendrequest.GetRequestStream
httStream.Write(data, 0, data.Length)
if you the answer of this problem please help me.