I have a code below i'm trying to test
It had a DataSetDatasour ce but i thinks its deprecated if yes what can i use
in this scenario below?
I used XmlDatasource but its saying it can't find the property url in the
xml which is there
Any ideas?
** XML datasource file below
<asp:XmlDataSou rce ID="DataSetData Source1" Runat="server"
DataFile="~/data/Announcements.x ml"/>
<asp:DataList ID="DataList1" Runat="server"
DataSourceID="D ataSetDataSourc e1">
<ItemTemplate >
<table id="Table1" cellspacing="1" cellpadding="1" width="100%" border="0">
<tr>
<td valign="top" style="width: 80%">
<asp:HyperLin k ID="TitleLabel " Runat="server" NavigateUrl='<% #
DataBinder.Eval (Container.Data Item, "url") %>'
Text='<%# DataBinder.Eval (Container.Data Item, "Title") %>'
Font-Names="verdana"
Font-Bold="True" Font-Size="8pt" ForeColor="#003 399" />
<br />
by
<asp:Label ID="OwnerLabel " Runat="server" Text='<%#
DataBinder.Eval (Container.Data Item, "Owner") %>'
ForeColor="#003 399" />
</td>
<td style="text-align: right" align="right" valign="top">
<asp:Label ID="DateLabel" Runat="server" Text='<%#
DataBinder.Eval (Container.Data Item, "Date") %>'
Font-Names="verdana" Font-Bold="True" Font-Size="8pt" ForeColor="#003 399" />
</td>
</tr>
<tr>
<td colspan="2">
<asp:Label ID="Description Label" Runat="server" Text='<%#
DataBinder.Eval (Container.Data Item, "Descriptio n") %>' />
</td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>
----------------------------------------------
<?xml version="1.0" encoding="utf-8" ?>
<announcement s>
<announcement >
<id>1</id>
<title>New Intranet Portal Launched!</title>
<date>6/1/2003</date>
<owner>Star Developer</owner>
<description>Ou r new Company Intranet Portal has launched! Be sure to check
out the ultra cool personalization abilities.</description>
<url>~/sales.aspx</url>
</announcement>
<announcement >
<id>2</id>
<title>Top Customers Identified</title>
<date>6/1/2003</date>
<owner>Sales Manager</owner>
<description> We have identified our top customers based on orders placed.
Check out the Sales tab for more details.</description>
<url>~/default.aspx</url>
</announcement>
<announcement >
<id>3</id>
<title>Pay Day</title>
<date>5/15/2003</date>
<owner>Presiden t</owner>
<description> We have decided to double eveyone's paycheck this month.
Enjoy!</description>
<url>~/default.aspx</url>
</announcement>
</announcements>