S
slinky
I had the code below working... by the way I got this from
http://aspnet.4guysfromrolla.com/demos/xmlRead2.aspx a very good
site! Anyway my compiler says that it doesn't like anything
between the opening and closing <Body> markups... any clues? Thanks!
<%@ import Namespace="System.Data" %>
<script runat="server">
Private Sub Page_Load(ByVal sender As Object, ByVal e As
EventArgs)
Dim myDataSet As New DataSet()
myDataSet.ReadXml(Server.MapPath("JFKtimeline.xml"))
dgBooksPretty.DataSource = myDataSet
dgBooksPretty.DataBind()
End Sub
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>JFK Timeline</title>
</head>
<body>
<p align="center">
<b>
<a href="/demos/books.xml"></a> </b>
</p>
<p align="center">
<b></b>
<asp:datagrid id="dgBooksPretty" runat="server"
AutoGenerateColumns="False"
Font-Name="Verdana"
Font-Size="Small"
HorizontalAlign="Center"
ItemStyle-BackColor="#C0FFC0"
AlternatingItemStyle-BackColor="White" Width="871px"
Height="128px" AllowSorting="True" BorderColor="Gray"
BorderStyle="Outset" BorderWidth="10px">
<HeaderStyle BackColor="DarkGreen" HorizontalAlign="Center"
ForeColor="White" Font-Bold="True" />
<Columns>
<asp:BoundColumn HeaderText="Event" DataField="event" />
<asp:BoundColumn HeaderText="Author" DataField="author" />
<asp:BoundColumn HeaderText="Year" DataField="year" />
</Columns>
<AlternatingItemStyle BackColor="White" />
<ItemStyle BackColor="#C0FFC0" />
</asp:datagrid><br />
<asp:Label ID="Label2" runat="server" BackColor="SeaGreen"
BorderColor="Transparent"
BorderStyle="Outset" Font-Bold="True" Font-Italic="True"
Font-Size="XX-Large"
ForeColor="Cyan" Height="40px" Style="z-index: 100; left:
14px; position: absolute;
top: 8px; width: 330px; text-align: center;" Text="
Juggernautical" Width="311px"></asp:Label>
<asp:datagrid id="dgBooks" runat="server" Visible="False" /></
p>
</body>
</html>
http://aspnet.4guysfromrolla.com/demos/xmlRead2.aspx a very good
site! Anyway my compiler says that it doesn't like anything
between the opening and closing <Body> markups... any clues? Thanks!
<%@ import Namespace="System.Data" %>
<script runat="server">
Private Sub Page_Load(ByVal sender As Object, ByVal e As
EventArgs)
Dim myDataSet As New DataSet()
myDataSet.ReadXml(Server.MapPath("JFKtimeline.xml"))
dgBooksPretty.DataSource = myDataSet
dgBooksPretty.DataBind()
End Sub
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>JFK Timeline</title>
</head>
<body>
<p align="center">
<b>
<a href="/demos/books.xml"></a> </b>
</p>
<p align="center">
<b></b>
<asp:datagrid id="dgBooksPretty" runat="server"
AutoGenerateColumns="False"
Font-Name="Verdana"
Font-Size="Small"
HorizontalAlign="Center"
ItemStyle-BackColor="#C0FFC0"
AlternatingItemStyle-BackColor="White" Width="871px"
Height="128px" AllowSorting="True" BorderColor="Gray"
BorderStyle="Outset" BorderWidth="10px">
<HeaderStyle BackColor="DarkGreen" HorizontalAlign="Center"
ForeColor="White" Font-Bold="True" />
<Columns>
<asp:BoundColumn HeaderText="Event" DataField="event" />
<asp:BoundColumn HeaderText="Author" DataField="author" />
<asp:BoundColumn HeaderText="Year" DataField="year" />
</Columns>
<AlternatingItemStyle BackColor="White" />
<ItemStyle BackColor="#C0FFC0" />
</asp:datagrid><br />
<asp:Label ID="Label2" runat="server" BackColor="SeaGreen"
BorderColor="Transparent"
BorderStyle="Outset" Font-Bold="True" Font-Italic="True"
Font-Size="XX-Large"
ForeColor="Cyan" Height="40px" Style="z-index: 100; left:
14px; position: absolute;
top: 8px; width: 330px; text-align: center;" Text="
Juggernautical" Width="311px"></asp:Label>
<asp:datagrid id="dgBooks" runat="server" Visible="False" /></
p>
</body>
</html>