SORU
22 Aralık 2010, ÇARŞAMBA


Nasıl web sayfası alabilirim'nin içeriği ve dize değişkeni içine Kaydet

Merhaba dostlar

CEVAP
22 Aralık 2010, ÇARŞAMBA


Professional (Service sorunları ile karşılaştım.Önce Downloadstring. Eğer bunu yaparsanız, bu deneyebilirsiniz:

WebRequest request = WebRequest.Create("http://www.google.com");
WebResponse response = request.GetResponse();
Stream data = response.GetResponseStream();
string html = String.Empty;
using (StreamReader sr = new StreamReader(data))
{
    html = sr.ReadToEnd();
}

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • ElChakotay Andrich

    ElChakotay A

    10 EKİM 2013
  • REK Roth Productions

    REK Roth Pro

    8 Ocak 2011
  • WHZGUD2

    WHZGUD2

    21 EYLÜL 2011