Last post Nov 17, 2010 09:17 AM by hsobhy
Nov 17, 2010 08:43 AM|hsobhy|LINK
I Have 2 levels xml as sections & pages. I'm listing pages under each section normally using XmlDataSource, DataSourceId and XPathSelect in my repeaters. But I had a problemwhen I tried to only select the page with new="True" under a sipicific section. so
I tried the following tags:
<asp:repeater id="rpFeatured" DataSource='<%# XPathSelect("page[@new='True']") %>' runat="server">
<asp:repeater id="rpFeatured" DataSource='<%# XPathSelect("page[@new=\'True\']") %>
And Even solutions on
I'm on ASP.Net Framework 4.0 using VS 2010 & VB.Net
Is there anyway to fix that whithout using the code behinde?
Thank You all in Advance
Nov 17, 2010 09:17 AM|hsobhy|LINK
Is it asp.net forum magic ?!! I got a solution once back to my code after I submitted the topic .. I removed the douple quotes of the DataSource it self like this:
DataSource=<%# XPathSelect("page[@new='True']") %> ..
Sure i'm getting validation remark but it works .. please if there any other standard method /solution please tell me.