5 items found in the LINQ Category

Cannot use a lambda expression as an argument to a dynamically dispatched operation

Tuesday, September 18, 2012 8:08 AM

LINQ ASP.NET MVC ASP.NET Web Pages WebMatrix

Since the introduction of the Web Pages framework, ASP.NET has been making use of the dynamic type introduced in C# 4.0. Along with that comes some new error messages which at first glance don't make a lot of sense - mainly because they are unexpected. I have already looked at how dynamics do not support extension methods, and a recent question in the ASP.NET forums illustrated another way in which the dynamic type can catch you out.

Click to read more about Cannot use a lambda expression as an argument to a dynamically dispatched operation ...

Viewed 24034 times

1 Comment for this item

Dependency Injection and Inversion of Control with ASP.NET MVC

Saturday, October 10, 2009 10:46 PM

LINQ ASP.NET MVC Entity Framework

As you delve more into ASP.NET MVC you start to come across a whole new way of doing things that Web Forms development didn't really expose you to. Inversion of Control (IoC) and Dependency Injection (DI) are two phrases that crop up a lot in the MVC space. So what are they all about? And should you care?

Click to read more about Dependency Injection and Inversion of Control with ASP.NET MVC ...

Viewed 100040 times

22 Comments for this item

Parameterized IN clauses with ADO.NET and LINQ

Monday, September 28, 2009 9:53 PM

C# ADO.NET LINQ ASP.NET 3.5

Since my article on using parameters for Preventing SQL Injection In ASP.NET, I have had a few emails asking how to do the same with an IN clause expression. In this entry, I explore a couple of ways to do this.

Click to read more about Parameterized IN clauses with ADO.NET and LINQ ...

Viewed 34995 times

9 Comments for this item

RSS Feeds and Google Sitemaps for ASP.NET MVC with LINQ To XML

Friday, July 10, 2009 10:43 PM

LINQ ASP.NET MVC

For the majority of personal web sites, two uses of XML are commonplace: creating an RSS feed and a Google Sitemap. Here, I look at how to create both of those using LINQ to XML for an ASP.NET MVC web site.

Click to read more about RSS Feeds and Google Sitemaps for ASP.NET MVC with LINQ To XML ...

Viewed 35700 times

12 Comments for this item

Search Engine-Friendly Custom Paging with the GridView and LINQ to SQL

Tuesday, November 20, 2007 10:54 PM

LINQ ASP.NET 3.5 ASP.NET Web Forms

The main problem I find with the built-in paging functionality offered by the GridView control is that the paging links are managed by Javascript. This is a bit awkward for people who disable, or don't have Javascript in their browser, but more importantly, the links can't be triggered by search engines. If you rely on the GridView to paginate links to content, this can prove disastrous, and much of your content will be inaccessible to search engines. Motivated by Scott Guthrie's series of blog entries on LINQ to SQL, available in the .Net 3.5 framework, I set about getting some custom paging working with html paging links.

Click to read more about Search Engine-Friendly Custom Paging with the GridView and LINQ to SQL ...

Viewed 45387 times

15 Comments for this item