rezadana
سه شنبه 20 خرداد 1393, 21:40 عصر
در این کد آدرس یک وب سایت به تابع فرستاده می شود و سورس برنامه به صورت متنی دریافت می شود.
string getPageSource(string URL)
{
System.Net.WebClient webClient = new System.Net.WebClient();
string strSource = webClient.DownloadString(URL);
webClient.Dispose();
return strSource;
}
string getPageSource(string URL)
{
System.Net.WebClient webClient = new System.Net.WebClient();
string strSource = webClient.DownloadString(URL);
webClient.Dispose();
return strSource;
}