0

Here is my code.

        unametxt = textBlock1.Text;
        passtxt = textBlock2.Text;

        WebClient webClient = new WebClient();
        webClient.BaseAddress = "http://students.usls.edu.ph";

        webClient.Credentials = new NetworkCredential(unametxt, passtxt);

        webClient.DownloadStringCompleted += new DownloadStringCompletedEventHandler(client_DownloadStringCompleted);
        webClient.DownloadStringAsync(new Uri("http://students.usls.edu.ph"));

After connecting, the source code is downloaded and saved to a string variable.

public void client_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e)
        {
            data = e.Result;
        }

The source code that is downloaded is the source code of the login page. I want to download the source code of the page after the login page. How can I do it?

Edited by pmark019

2
Contributors
1
Reply
3
Views
5 Years
Discussion Span
Last Post by pritaeas
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.