C# Corner
Tech
News
Videos
Forums
Trainings
Books
Live
More
Interviews
Events
Jobs
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Reading Response From URL in Asp.net(C#)
WhatsApp
Nikhil Sangani
Aug 02
2016
1.1
k
0
2
using
System.Net;
string
str =
"Here Type URL"
;
using
(WebClient webClient =
new
System.Net.WebClient())
{
WebClient objWebClient =
new
WebClient();
var strcontent = objWebClient.DownloadString(str);
string
valueOriginal = Convert.ToString(strcontent);
Console.WriteLine(strcontent);
}
JSON
Read Response
Read String
XML
Up Next
Reading Response From URL in Asp.net(C#)