Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
All-Star
118619 Points
18779 Posts
Mar 21, 2012 01:17 AM|LINK
Hello again:)
I've tried your codes and I found that because you've bound to a wrong tags,and you should directly bind to group instead of element/@name,see mine:
XmlDocument xmlDoc = new XmlDocument(); xmlDoc.Load(Request.MapPath("XMLFile1.xml")); XmlNodeList nodes = xmlDoc.SelectNodes("Koorabet/sport/group"); rep.DataSource = nodes; rep.DataBind();
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: open details.aspx by id in XML
Mar 21, 2012 01:17 AM|LINK
Hello again:)
I've tried your codes and I found that because you've bound to a wrong tags,and you should directly bind to group instead of element/@name,see mine:
XmlDocument xmlDoc = new XmlDocument(); xmlDoc.Load(Request.MapPath("XMLFile1.xml")); XmlNodeList nodes = xmlDoc.SelectNodes("Koorabet/sport/group"); rep.DataSource = nodes; rep.DataBind();