ludmal

ludmal

  • NA
  • 0
  • 0

XML DataBinding to Nested Repeaters

Apr 5 2004 12:23 PM
hi, I have a xml file and I want to bind it to a nested repeaters. but the problem I'm having is now I cannot give reference to xml nodes inside the repeater.. pls advice me .. the problem is in line 17. It's not able to render the CountrName from the tblCoutry xml node.. any idea's..????? HTML with line numbers. ---------------------------------- 01) <%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="hdb_vb.WebForm1"%> 02) <%@ Import Namespace="System.Xml" %> 03) 04) 05) 06)

Hierarchical databinding test with XmlNode

07) 08) 09) AAA:<%# (Ctype(Container.DataItem, System.Xml.XmlNode)).Attributes("WorldRegionName").Value %>
10) 11) 12)   Author: 13) <%# (Ctype(Container.DataItem, System.Xml.XmlNode)).Attributes("CountryName").Value %> 14) 
15) 16) 17)     <%# (Ctype(Container.DataItem, System.Xml.XmlNode)).Attributes("CountryMajorCityName").Value %>
18) 19) 20) 21) 22)

Answers (1)