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
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
shlomi gadol
NA
36
57k
WebClient - problem reading from web page
Jun 27 2015 2:16 PM
Hi,
I build winform which try to read data/string from webpage.
In the following code I get no string in variable reply. however if I am using the comment url ("http://www.finviz.com/") I get string in the reply.
Can you help to see why I am not getting data in this code?
Thanks
Shlomi
private void button34_Click_1(object sender, EventArgs e)
{
WebClient web1 = new WebClient();
string url;
url = "http://www.finviz.com/screener.ashx?v=110&s=ta_topgainers&o=-price"; // This is not working
//url = "http://www.finviz.com/"; // This is working
WebClient client = new WebClient();
string reply = client.DownloadString(url);
}
Reply
Answers (
5
)
Socket connection disconnectd
Can we run win phone 7 app on win phone 8??