Cool Thank you !!!
protected void LinqQuery()
{
NewsItemsDataContext dc = new NewsItemsDataContext();
var n =
from ni in dc.GetTable<NewsItem>()
select ni.NewsItem1;
var l = n.ToList();
foreach (var ni in n)
{
string NewsItems = ni.ToString();
litNewsItems.Text = NewsItems;
}
//litNewsItems.Text = NewsItem
}
No comments:
Post a Comment