code problem error

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

<p align="center">
<b>
<a href="/demos/books.xml"></a>&nbsp;</b>&nbsp;
</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 />
&nbsp;
<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>
&nbsp;&nbsp;
<asp:datagrid id="dgBooks" runat="server" Visible="False" /></
p>

</body>
</html>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,066
Latest member
VytoKetoReviews

Latest Threads

Top