Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: ASP.NET 2- Can't read data in XML file

From: "noone" <noone@-------.--->
To: NULL
Date: 4/1/2006 1:10:00 PM

 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 >

&nbsp; </ 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/ 




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent