Hi,
I have about 10 pages which refer to 10 different courses.
Part of the xmldatasouce is the same in each page: How do i recycle the datasource efficiently?
<asp:XmlDataSource
id="XmlSourceT1"
DataFile="/courselist.xml"
runat="server"
XPath="courseList/category/product[@code ='av']" />
The actual content is listed in the usercode file and is selected based on the "@code='something'" in the xpath. I can see moving the datasource to the usercode.ascx.vb file but how do i change the code to reflect the page.
so in pages:
av.aspx = XPath="courseList/category/product[@code ='av']" />
lr.aspx = XPath="courseList/category/product[@code ='lr']" />
hr.aspx = XPath="courseList/category/product[@code ='hr']" />
etc.
Thanks
Tania