Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
4
Reply
WebClient has problem reading web page
shlomi gadol
Jul 28 2015 12:10 PM
379
Reply
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);
}
}
}
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
4
)
Next Recommended Forum
What is IS and AS keywords in c#???
Control Image Sharpness and Zoom using asp.net