LINQ in Action roller

How can i use query result more than once in my code ?

Hi All, I am new to LINQ . Here i am getting one problem while using query results more than once in my code. Dim col = From obj In db.MyStoredProc( ) _ Select obj.TextField, obj.ValueField Call PopulateComboBox(DropDownlist1, col, " TextField " , " ValueField " ) Call PopulateComboBox(DropDownList2, col, " TextField " , " ValueField " ) While executing this code i am getting error that " The query results cannot be enumerated more than once." Can anyone advise me on this ,how can i use one query Read More...
Published Monday, July 07, 2008 2:26 AM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication