Subscribe to Subscribers

Forums » .NET » LINQ »

Binding with repeater


Posted Date: 06 Apr 2010      Posted By:: naveen gupta     Member Level: Silver    Member Rank: 1408     Points: 1   Responses: 2



hello dear.

I am using the one repeater and a linq datasource.
and 4-5 standard button control.
On the click event of the button i have to bind the linqdatasource to the repeater.
All the button are performing the different operatios. .

please tell me how to do...
thanks




Responses

#490403    Author: YuDi      Member Level: Gold      Member Rank: 114     Date: 06/Apr/2010   Rating: 2 out of 52 out of 5     Points: 2

try that code

var groups = from G in handle.MyAlbum_Groups

where G.AlbumID == 2

select new

{

GroupID = G.Group.GroupID,

GroupName = G.Group.GroupName,

GroupDesc = G.Group.GroupDesc

};

rptGroups.DataSource = groups;

rptGroups.DataBind();

“Talent wins games, but teamwork and intelligence wins championships.”
umardaraj07@gmail.com


 
#490456    Author: Anil Kumar Pandey      Member Level: Platinum      Member Rank: 1     Date: 06/Apr/2010   Rating: 2 out of 52 out of 5     Points: 2

get the result in the data set


rpt1.DataSource = Dataset;

rpt1.DataBind();


Thanks & Regards
Anil Kumar Pandey
Microsoft MVP, DNS MVM


 
Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.



Previous : From where to start? what is it LinQ?
Return to Discussion Forum
Post New Message
Category:

Awards & Gifts
Talk to Webmaster Tony John
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
2005 - 2013 All Rights Reserved.
.NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
Articles, tutorials and all other content offered here is for educational purpose only.
We are not associated with Microsoft or its partners.