Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ObjectDataSource and Linq

Reply
Thread Tools

ObjectDataSource and Linq

 
 
shapper
Guest
Posts: n/a
 
      02-20-2008
Hello,

I am using LINQ in a ObjectDataSource to feed a ListView:

' odsTags_Selecting
Private Sub odsTags_Selecting(ByVal sender As Object, ByVal e As
ObjectDataSourceSelectingEventArgs) Handles odsTags.Selecting

' Create database
Dim database As New CodeDataContext

' Select tags
Dim tags = From t In database.Tags _
Select t.TagID, _
t.Text, _
Active = t.FilesTags.Any Or t.ArticlesTags.Any

End Sub ' odsTags_Selecting

How can now use the records retrieved?

Thanks,

Miguel
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linq or not Linq George ASP .Net 4 11-05-2008 04:53 PM
System.Data.Linq.Binary field in Objectdatasource / Detailsview australienadri@googlemail.com ASP .Net Web Controls 0 08-07-2008 05:16 PM
Finding and selecting a record in a gridview with paging and sortingenabled (using LINQ) Mike N. ASP .Net 0 07-31-2008 04:55 PM
Finding and selecting a record in a gridview with paging and sortingenabled (using LINQ) Mike N. ASP .Net 0 07-31-2008 04:47 PM
ObjectDataSource method as another ObjectDataSource David Thielen ASP .Net Web Controls 3 03-23-2006 01:50 AM



Advertisments