Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: ASP.NET 2- Can't read data in XML file [Thread Next] Re: ASP.NET 2- Can't read data in XML fileTo: NULL Date: 4/1/2006 2:03:00 PM Here's the error when I run the web app 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. "noone" <noone@n...> wrote in message news:%232JCJebVGHA.1204@T...... > default.aspx.vb > -------------------------------------------- > Partial Class _Default > > Inherits System.Web.UI.Page > > Protected Sub XmlDataSource1_Transforming( ByVal sender As Object , ByVal > e As System.EventArgs) Handles XmlDataSource1.Transforming > > End Sub > > Protected Sub GridView1_SelectedIndexChanged( ByVal sender As Object , > ByVal e As System.EventArgs) Handles GridView1.SelectedIndexChanged > > End Sub > > End Class > > > ---- > default.aspx > ------------------------------ > <% @ Page Language ="VB" AutoEventWireup ="false" CodeFile > ="Default.aspx.vb" Inherits ="_Default" %> > > <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > > < html xmlns ="http://www.w3.org/1999/xhtml" > > > < head runat ="server"> > > < title > Untitled Page </ title > > > </ head > > > < body > > > < form id ="form1" runat ="server"> > > < div > > > </ div > > > < asp : XmlDataSource ID ="XmlDataSource1" runat ="server" DataFile > ="~/App_Data/webstats.xml" > > XPath ="webstats/app"></ asp : XmlDataSource > > > < asp : GridView ID ="GridView1" runat ="server" CellPadding ="4" > DataSourceID ="XmlDataSource1" > > ForeColor ="#333333" GridLines ="None"> > > < FooterStyle BackColor ="#990000" Font-Bold ="True" ForeColor ="White" /> > > < RowStyle BackColor ="#FFFBD6" ForeColor ="#333333" /> > > < SelectedRowStyle BackColor ="#FFCC66" Font-Bold ="True" ForeColor > ="Navy" /> > > < PagerStyle BackColor ="#FFCC66" ForeColor ="#333333" HorizontalAlign > ="Center" /> > > < HeaderStyle BackColor ="#990000" Font-Bold ="True" ForeColor ="White" /> > > < AlternatingRowStyle BackColor ="White" /> > > </ asp : GridView > > > </ form > > > </ body > > > </ html > > > "Martin Honnen" <mahotrash@y...> wrote in message > news:OBhrJXbVGHA.1488@T...... >> >> >> noone wrote: >> >>> Are there any design criteria for XML files that can be used in Visual >>> Web Developer. >>> I'm using XML Control and Dataview control but the page errors with "no >>> data" >> >> How exactly do you use the XML control and the dataview control? Show us >> the source. >> >> -- >> >> Martin Honnen --- MVP XML >> http://JavaScript.FAQTs.com/ > > | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
