0
嗨的實例,我得到在下面的代碼object reference not set to an instance of an object
註釋行的錯誤,有沒有辦法解決?對象引用不設置到對象的XDocument
private void button20_Click(object sender, EventArgs e)
{
string blabla1 = string.Format("http://localhost:8000/Service/AuthenticateUser/{0}/{1}", textBox30.Text, textBox31.Text);
XDocument xDoc = XDocument.Load(blabla1);
xDoc.Element("StudentID").Value.ToList(); // object reference not set to an instance of an object?
dataGridView12.DataSource = xDoc;
}
我們在做整個項目適合你? ;) – musefan 2012-04-24 10:13:31
你可以附加XML? – 2012-04-24 10:14:39
如果可能的話顯示xml – 2012-04-24 10:14:55