-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Ilist to Datalist control
PostPosted: Thu Nov 13, 2008 11:14 am 
Newbie

Joined: Mon Oct 27, 2008 11:37 am
Posts: 4
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.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 17, 2008 4:29 am 
Beginner
Beginner

Joined: Tue Dec 04, 2007 4:48 pm
Posts: 21
just making sure - you did set the datasource of the datalist to the query-result, and you did call "Databind"?

_________________
Please rate if the answer was helpful


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.