Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void LoginButton_Click(object sender, EventArgs e)
- {
- TextView userName = FindViewById<TextView>(Resource.Id.editTextUsername);
- TextView userPass = FindViewById<TextView>(Resource.Id.editTextPassword);
- client = new WebClient();
- url = new Uri(@"http://127.0.0.1/memento/accountcheck.php");
- //url = new Uri(@"http://127.0.0.1/memento/phpinfo.php");
- /*
- NameValueCollection parameters = new NameValueCollection();
- parameters.Add("Username", userName.Text);
- parameters.Add("Password", userPass.Text);
- */
- client.DownloadDataCompleted += Client_DownloadDataCompleted;
- client.DownloadDataAsync(url);
- }
- private void Client_DownloadDataCompleted(object sender, DownloadDataCompletedEventArgs e)
- {
- Console.WriteLine(e.Result);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement