Reply to comment

See the way LINQ works (and likes to

See the way LINQ works (and likes to work) is in a completely connected environment where the LINQ data object maintains the connection and information about the connections to the database. This code example here shows you how to abstract that out and make it more stateless.

I have many web methods using this code as a template and they work as expected. This code should work for what you want with a web service as well as ASPX page.

Reply