0
林可發現on code project定製中繼器與使用自定義NestedRepeater控制ASP.NET hiractial數據綁定
來源是在c#我已轉換爲vb和插入到我的解決方案,到目前爲止好。遇到的問題,IM是數據綁定到中繼器,我後面的代碼看起來像這樣...
'' get all pages
Dim navPages As DataSet = Navigation.getMenuStructure()
navPages.Relations.Add(navPages.Tables(0).Columns("ID"), navPages.Tables(0).Columns("ParentID"))
NestedRepeaterNavigation.RelationName = RelationName
NestedRepeaterNavigation.DataSource = navPages
NestedRepeaterNavigation.RowFilterTop = "ParentID is null"
NestedRepeaterNavigation.DataBind()
在我的自定義轉發IM的項目模板
然後嘗試以下...
<ItemTemplate>
<img src="/pix.gif" height="10" width="<%#(Container.Depth * 10)%>">
<%# (Container.DataItem as DataRow)["DESCRIPTION"]%>
<%# (Container.NbChildren != 0 ? "<small><i>(" + Container.NbChildren.ToString() +")</i></small>" "") %><small><i></i></small>
</ItemTemplate>
數據綁定倒下了;首先,'正如DataRow'所說的那樣,期待''''。其次,預計'!='標識符。
這是由於從C#翻譯,數據綁定應該不同?
感謝您的答覆!你能告訴我我將如何施展? – Dooie 2010-06-18 10:25:22