ASP XML as Datasource error
Posted
by nekko
on Stack Overflow
See other posts from Stack Overflow
or by nekko
Published on 2010-03-07T23:20:57Z
Indexed on
2010/03/07
23:26 UTC
Read the original article
Hit count: 489
Hello
I am trying to use an XML as a datasource in ASP and then display it as a datagrid. The XML has the following format:
<?xml version="1.0" encoding="UTF-8"?>
<people type="array">
<person>
<id type="integer"></id>
<first_name></first_name>
<last_name></last_name>
<title></title>
<company></company>
<tags>
</tags>
<locations>
<location primary="false" label="work">
<email></email>
<website></website>
<phone></phone>
<cell></cell>
<fax></fax>
<street_1/>
<street_2/>
<city/>
<state/>
<postal_code/>
<country/>
</location>
</locations>
<notes></notes>
<created_at></created_at>
<updated_at></updated_at>
</person>
</people>
When I try to run the simple page I receive the following error
Server Error in '/' Application.
The data source for GridView with id 'GridView1' did not have any properties or attributes from which to generate columns. Ensure that your data source has content.
Please help. Thanks in advance.
© Stack Overflow or respective owner