TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Reading Response From URL in Asp.net(C#)
Nikhil Sangani
Aug 02
2016
Code
978
0
2
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
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);
}
Read Response
Read String
XML
JSON