I am wondering how to bind a Ilist which has the following properties from my query
"SELECT users.Id , files.Id ," +
"files.FileName , types.TypePath " +
"FROM eImage2.nFiles as files " +
INNER JOIN files.User as users " +
"INNER JOIN users.Type as types ";
To a datalist. I cannot find any information on the internet on how to bind them and gather it is not as simple as simply doing this.
<asp:Label Text='<%# DataBinder.Eval(Container.DataItem, "FileName")%>' runat="server" />
Any help would be greatful as it is driving me nuts!
Ps I am getting results back but I just cant get them to display.
|