When I try to return the student using this method it doesn't show anything or any error, if I however don't put anything in the password box I get a 404 error so I know its working so my authenticate method isn't working, I basically want to authenticate the user and return something from the student collection, like the FirstName?
private void button20_Click(object sender, EventArgs e)
{
string uri = string.Format("http://localhost:8000/Service/AuthenticateStudent/{0}/{1}", textBox28.Text, textBox29.Text);
XDocument xDoc = XDocument.Load(uri);
var Tag12 = xDoc.Descendants("Student")
.Select(n => new
{
FirstName = n.Element("FirstName").Value,
})
.ToList();
dataGridView12.DataSource = Tag12;
}