Tutorials

Tutorial: Paging with LINQ and ObjectDataSource

I’ve read a few tutorials online about paging with LINQ and an ObjectDataSource but there were always quirks that ended up slowing me down unnecessarily so I thought I’d put together my own easy to follow tutorial that should get someone up and running with paging in almost no time! Step 0: Things I will Assume about your Project I’ll assume that you have already created a DataContext and dropped in some tables from your database onto it. For my tutorial, I’ll again re-use the “Person” object that...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Tutorial: Why the ObjectDataSource is my best friend

So when I first started working with SQL Server 2008 and LINQ, I would pretty much just use the LinqDataSource because it was definitely the easiest to use. It’s pretty good for testing purposes, or really small projects, but if you’re doing anything that is going to grow / is large already, then you’ll probably not want all that logic embedded in your pages. As I became more comfortable with LINQ, I decided to take on the task of switching over to the ObjectDataSource to bind to my ListViews. Here’s...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Tutorial: Implementing/Working with Class Libraries

It was about 2-3 months into working with .NET that I finally realized the amazingness that are class libraries. It was one of those things that I knew would be useful, but I could never really find a great explanation for how to get them to work and how to easily pass them around multiple projects and update them, etc. I’ll write the post as if I’m working through the process: So the basic part was easy. I have my web application and it has a ton of files in App_Code folder. I want to move them...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati