October 2008 - Posts

Linq to SQL: Delete an entity using Primary Key only by Omar AL Zabir blog on ASP.NET Ajax and .NET 3.5

Linq to Sql does not come with a function like .Delete(ID) which allows you to delete an entity using it’s primary key. You have to first get the object that you want to delete and then call .DeleteOnSubmit(obj) to queue it for delete. Then you...
Filed under: , ,

How to convince developers and management to use automated unit test for AJAX websites by Omar AL Zabir blog on ASP.NET Ajax and .NET 3.5

Everyone agrees that unit testing is a good thing, we should all write unit tests. We read articles and blogs to keep us up-to-date on what’s going on in the unit test world so that we can sound cool talking to peers at lunch. But when we really sit down...
Filed under: , , ,

Solving common problems with Compiled Queries in Linq to Sql for high demand ASP.NET websites by Omar AL Zabir blog on ASP.NET Ajax and .NET 3.5

If you are using Linq to SQL, instead of writing regular Linq Queries, you should be using Compiled Queries. if you are building an ASP.NET web application that’s going to get thousands of hits per hour, the execution overhead of Linq queries is...
Filed under: , ,

I am here at PDC 2008 by Mehfuz's WebLog

  Finally, PDC 2008 is going to roll on this Monday, when Ray Ozzie will start the show off with his keynote. This year there will be quite a new things to be announced during the show. There will be first time preview of Windows 7 and Microsoft's...
Filed under:

LinqExtender 1.4.2 - Supporting Complex type arguments by Mehfuz's WebLog

I just made a quick update to the existing release of LinqExtender. I recently found a bug while building a feature for FlickrXplorer is that if you use constant type query with orderby clause it does pretty well, but it simply does not do well with complex...
Filed under: , ,

Tips and tricks to rescue overdue projects by Omar AL Zabir blog on ASP.NET Ajax and .NET 3.5

One of my friends, who runs his own offshore development shop, was having nightmare situation with one of his customers. He's way overdue on a release, the customer is screaming everyday, he's paying his team from his own pocket, customer is sending...
Filed under: ,

Using jQuery to do Ajax Form posts in Asp.net MVC by Mehfuz's WebLog

It is now official from a post by great Scott Guthrie that jQuery is bundled with Asp.net MVC Beta. jQuery is a tiny 15K JavaScript library that contains features from UI tweaks, DOM manipulation to full Ajax control. In my last post, I have shown how...

An Agile Developer's workflow when SCRUM is used by Omar AL Zabir blog on ASP.NET Ajax and .NET 3.5

If you are planning to start SCRUM at your company, you might need to train developers and QA to get into the mindset of an Agile developer. SCRUM is only successful when the developers and QA get into the habit of following the principles of SCRUM by...
Filed under: ,

ASP.NET website Continuous Integration+Deployment using CruiseControl.NET, Subversion, MSBuild and Robocopy by Omar AL Zabir blog on ASP.NET Ajax and .NET 3.5

You can setup continuous integration and automated deployment for your web application using CruiseControl.NET, Subversion, MSBuild and Robocopy. I will show you how you can automatically build the entire solution, email build report to developers and...
Filed under: , ,

Using multiple broadband connections without using any special router or software by Omar AL Zabir blog on ASP.NET Ajax and .NET 3.5

I have two broadband connections. One cheap connection, which I mostly use for browsing and downloading. Another very expensive connection that I use for voice chat, remote desktop connection etc. Now, using these two connections at the same time required...
Filed under: , ,

Best practices for creating websites in IIS 6.0 by Omar AL Zabir blog on ASP.NET Ajax and .NET 3.5

Every time I create an IIS website, I do some steps, which I consider as best practice for creating any IIS website for better performance, maintainability, and scalability. Here' re the things I do: Create a separate application pool for each web...
Filed under: , , ,

Create ASP.NET MVC Controllers under Namespace and specific URL by Omar AL Zabir blog on ASP.NET Ajax and .NET 3.5

When you have a lot of controllers, you need to organize them under Namespaces. Also, it is better to put controllers under subfolders in order to organize them properly and have some meaningful URL for them like /Admin/User where Admin is the subfolder...
Filed under: ,

Create REST API using ASP.NET MVC that speaks both Json and plain Xml by Omar AL Zabir blog on ASP.NET Ajax and .NET 3.5

ASP.NET MVC Controllers can directly return objects and collections, without rendering a view, which makes it quite appealing for creating REST like API. The nice extensionless Url provided by MVC makes it handy to build REST services, which means you...
Filed under: , ,
Powered by Community Server (Non-Commercial Edition), by Telligent Systems