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
57.1k
WebClient has problem reading web page
Jul 28 2015 12:10 PM
Hi,
I have problem reading web page string, This is my code. I got only "" in the result string. If you can help me it would be great.
you can see that the url provide something in webrowser but with webclient it doesn't return anything. if you can try it by yourself and reply with resolution.
thanks a lot
shlomi
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
string url;
url = "http://www.finviz.com/screener.ashx?v=110&s=ta_topgainers&o=-price"; // This is not working
WebClient client = new WebClient();
string reply = client.DownloadString(url);
}
}
}
Reply
Answers (
4
)
What is IS and AS keywords in c#???
Control Image Sharpness and Zoom using asp.net