Subscribe to this list via RSS Blog posts tagged in Web

Posted by on in Blogs
Skip(0) in LINQ and Testing A couple of weeks ago, I wrote In LINQ, Beware of Skip(0). In that post, I observed that calling Skip(0) on a query result in LINQ, which has no effect on the dataset returned, imposes a performance penalty with at least some LINQ providers. At the time I commented that there might be some desirable behavior of this that I had missed. Sure enough, one of the developers on the LINQ to SQL team noted in comments that Skip(0) will cease to be a no-op in LINQ to SQL in .NET 4.0, and supplied a perfe...

Posted by on in Blogs
Using DayPilot with ASP.NET MVC I'm going to demonstrate how to use the open-source DayPilot Lite calendar control in an ASP.NET MVC application. I will discuss the capabilities of the control and consider the general problem of how to use controls designed for "plain" ASP.NET in MVC applications. I'm including a demo solution which you can download and run yourself. Download the demo solution: DayPilot ASP.NET MVC demo We needed a calendar control for an ASP.NET MVC application. In particular, we needed a control which ...
Using jqGrid with ASP.NET MVC: Understanding LINQ Errors If you spend enough time with the PagedList class that I've been using for paging in the method which supplies data to jqGrid, it's a near-certainty that sooner or later you will see a LINQ error with Count in the call stack. The error may seem confusing, because it has nothing to do with Count. Commentor Graeme has been experimenting with my demo solution, and has run into just this issue: Finding your blogs very helpful - superbly written - just found out about jqgrid last night and have inte...

Posted by on in Blogs
jQuery Index Inconsistency The jQuery :nth-child selector has an "index" argument which is 1-based. But the jQuery "index" method, which is arguably the converse of the selector, returns a 0-based result. This is very easy to work around once you're aware of it, but it's surprising in a library which is, generally, designed both well and consistently....

Posted by on in Blogs
Using jqGrid with ASP.NET MVC: Deleting Records This is the fifth post in a series on using jqGrid with ASP.NET MVC. Today, we’re going to begin examining the grid's editing features by implementing deletes. If you’re new to the series, you might want to start at the beginning. The delete feature of jqGrid is, oddly, almost entirely undocumented, even though there quite a few examples of different methods of editing, and inserts are documented, to a lesser extent. But it does exist; I just had to read the source code to figure out how it w...
Using jqGrid with ASP.NET MVC: Search and Formatting This is the fourth post in a series on using jqGrid with ASP.NET MVC. Today, we're going to examine search and formatting results. I will implement a search feature and fix the problem with formatting date columns which I observed in the last post. I've updated the demo solution with these new features, and also fixed a bug reported by Andrey last time. If you're new to the series, you might want to start at the beginning. First, let's fix the date display. The reason the date appeared so odd...

Posted by on in Blogs
Embarcadero Jobs and jqGrid Trees I have a couple of short updates on topics I've covered recently. On The Podcast at Delphi.org, Nick Hodges confirms my earlier speculation about reorganization in the "CodeGear" group at Embarcadero. The whole show is worth listening to. Congratulations are due to Chris Pattinson, who was promoted to Director of Quality for all of Embarcadero. Time to update the subtitle of your blog, Chris! (And maybe even write a post or two...) Sounds like good changes all around. You read it here first, ...

Posted by on in Blogs
Using jqGrid with ASP.NET MVC: LINQ Extensions Mere hours after I posted the first in a planned series of posts on using jqGrid in ASP.NET MVC applications, Phil Haack, a rather-more-widely-read-ASP.NET-MVC-blogger, wrote a long post on, er, exactly the same thing. Who, me, bitter? Naahhh… :) But it turns out that we're using the grid in a different way, and I think the difference is important. So rather than just referring you to Phil's post and skipping the rest of the series, I think I still have some important information to contribut...

Posted by on in Blogs
Using jqGrid with ASP.NET MVC: Introduction This is the first post in a short series on using the jqGrid jQuery plug-in with ASP.NET MVC. In this short introduction I will describe the plug-in, list some of its strengths and weaknesses, and explain why we selected it for our MVC applications. In the next few days, I will give detailed information about how to use the grid in your own applications. jqGrid provides a nice-looking grid with built-in features such as sorting, editing, search, drill-down, tree lists, and more. It is based u...

Posted by on in Blogs
URIs Should Be Persistent When you are creating a new URI for a site you are building, give it a lot of thought. You should aim to design a URI which can last forever. Of course, this is not news. Jakob Nielsen said it 10 years ago. But in the intervening 10 years, we've gone from URIs which typically used to look something like this: http://www.example.com/foo.html ...which is fine, because if you go to such a link, you probably really will get HTML back, to URIs which (often) look something like this: http://www.exa...

Check out more tips and tricks in this development video: