Kod: Tümünü seç
// DirectOneDB direct1 = new DirectOneDB();
string TestingURL = ahost;
//Get page results
//Add the string components - user password is unique for payment processing
string urlValues = "name="+txtdeneme.Value;
urlValues += "&soyad=" + txtsoyad.Value;
//Create the Web Request
HttpWebRequest newRequest = (HttpWebRequest)
WebRequest.Create(TestingURL);
//Set the values for the web request
newRequest.Method = "POST";
newRequest.ContentType = "application/x-www-form-urlencoded";
newRequest.ContentLength = urlValues.Length;
//Write the Request String
StreamWriter streamOut = new StreamWriter(newRequest.GetRequestStream(), System.Text.Encoding.ASCII);
streamOut.Write(urlValues);
streamOut.Close();
//Send the request and get the response
string directOneResponse;
StreamReader streamIn = new StreamReader(newRequest.GetResponse().GetResponseStream());
directOneResponse = streamIn.ReadToEnd();
streamIn.Close();
//Show the value returned on the page;
Response.Write(directOneResponse);
ama işin enterasan tarafı Response.Write yapmadıgım zaman post işlemi hıc calısmıyor sadece sayfa yenılenıyor o kadar??
2.
Response.Write(directOneResponse); oldugu zaman.tamam tıkladıkdan sonra mevcut sayfa yenılenıyor ondan sonra host adrese post edıyor.
tamam tıklayınca direk host adrese yonlenmesı post lazım degılmı neden once sayfa yenılenıyor