A Pure ASP.Net Grid with Grouping
One of my favorite bloggers is Matt Berseth. Nearly once a week he comes up with a post where he does something amazing with the standard ASP.Net controls. I usually read his posts in awe. He’s really good.
But he’s not only is a good developer, he’s a great writer. Even though his posts are concise and straight to the point, most of them are pages long. You can really learn a lot from following his instructions.
He’s so good, in fact, that he regularly gets a mention on Scott Guthrie’s posts.
One of my favorite posts of his was where he used LINQ-to-SQL, a LinqDataSource control, and an ASP.Net ListView control – all new in .Net 3.5 – and made a grid with grouping functionality. He did it all in a standard way, and didn’t use any funny tricks.
Here’s a link to the article:
Building a Grouping Grid with the ASP.NET 3.5 LinqDataSource and ListView Controls
Enjoy!
No comments yet.
57No trackbacks yet.
C# Acrobatics : Lambdas and Expression Methods as a replacement for NVelocity
about 1 year ago - No comments
I’ve been very quiet recently. (I’m trying to not be so loud, Scott. ) You see, I’ve been writing a lot of ASP.Net code for a site I’m working on. And, to be honest, I’ve been having a lot of trouble. The source code for .Net has been very helpful, and I’ve learnt [...]
The Value of Being Free to See the Source
about 1 year ago - 1 comment
Since the source code to ASP.Net was made available, I’ve been using it extensively. Here’s a great example of why it’s so valuable.
I’ve been trying to integrate the Enterprise Library 3.1 Exception Handling Block into my application. My application is split into a core and web UI specific components, so I’ve defined errors in my [...]
Easy Data-loading with LINQ-to-SQL and LINQ-to-XML
about 2 years ago - 2 comments
.Net 3.5 had some nice tricks in it. LINQ-to-XML was one of them. With the new "X"-types, you can make working with XML really easy.
VB.Net 9 takes it one step further, and lets you write XML in your code without strings.
"Hey Rich, that’s old news," I hear you say. "And who’s interested in VB [...]
LINQ or DIE
about 2 years ago - No comments
I just read a fantastic quote about LINQ from the book Pro LINQ: Language Integrated Query in C# 2008 by Joseph C. Rattz, Jr.:
I prefer to think of LINQ as a data iteration engine, but perhaps Microsoft didn’t want a technology named DIE.
I think they already built the technology for such a product, and [...]
Start Learning Silverlight 2.0 Now
about 2 years ago - No comments
Now this is exciting. (Well, if you’re a geek.)
Silverlight 2.0 is on its way, and Scott Guthrie has posted 8 tutorials about using it.
I’m off to read them now…
The LinqDataSource and the Hidden Viewstate
about 2 years ago - 2 comments
Yesterday I thought I’d learn about the LinqDataSource in ASP.Net 3.5, and got an interesting surprise.
The new LinqDataSource can also be used with a LINQ-to-SQL model to perform updates. You simply add the DataSource to your page, set the table name, and set EnableUpdate to true. Then, using a standard DataControl, you can make updates [...]
How to Update Data with LINQ-to-SQL
about 2 years ago - 25 comments
When learning LINQ-to-SQL, it’s not immediately obvious how to do an update. Querying is easy, and there are methods for inserting and deleting. Updating usually occurs by modifying an object already known to the DataContext and then calling SubmitChanges on the context.
var product = (from p in dataContext.Products
[...]
How to See the SQL Generated by a LINQ to SQL Command
about 2 years ago - No comments
Quick tip: If you want to see the SQL generated by LINQ to SQL for a query or command, simply set the Log property of your generated DataContext class to an instance of a TextReader.
If this is your code:
using System;
using System.Linq;
using System.Data.Linq;
namespace LINQtoSQLConsole {
class Program {
static void Main(string[] args) [...]
My own ASP.Net MVP Framework
about 2 years ago - 4 comments
So, I did it! I finally did it!
I wanted to publish my ideas for a framework, and I did. You can find it on CodePlex at http://www.codeplex.com/aspnetmvp.
Go have a look. I really want to know what you think.
Now, I know there are a million and one frameworks for the web, so I don’t intend on [...]
ASP.Net MVC Corollary – What to do?
about 2 years ago - No comments
Dude! I got quoted! And by none other than Rob Conery of SubSonic fame.
It seems like my last post caused quite an unexpected stir. Thanks to both Rob and Scott for taking the time to answer me. I really appreciate it.
A Word of Appreciation
Let’s get something in perspective. Rob has actually produced something of immense [...]
