Pozdrav,
može pomoć.
Error:
Public member ‘GetChildRows’ on type ‘String’ not found.
code:
If myData.Tables(0).Rows(0)(“terrace”).GetChildRows(“myrelation”).ToString () = “Terrace” then
Labelfac.text ="Terrace"
end if
Inače ovo radi ako stavim u .aspx:
<asp:ListView runat=“server” OnItemDataBound=“Sub_ItemDataBound” ID=“subMenu” DataSource=’<%# Ctype(Container.Dataitem,DataRowView).Row.GetChildRows(“myrelation”)%>’ ItemPlaceholderID=“PlaceHolder3” >
<%#Container.DataItem(“terrace”)%>
Htio bi napraviti kroz kod.
Hvala