1:  private static bool IsReallyNullOrEmpty(string text)
   2:  {
   3:      return String.IsNullOrEmpty(text) || text.Trim().Length == 0;
   4:  }
 
 ...
    
	
    Gestern habe ich mich drei Stunden mit einem Problem in ASP.NET MVC herumgeärgert, was mich an alte ASP-Zeiten erinnerte. Ich wollte nichts mehr als in einer dynamisch generierten Tabelle einzelne Zeilen per Checkbox auswählen und zu jedem Eintrag noch 2 Werte aus DropDownLists bekommen, d.h. auslesen, validieren und vorbelegen. Normalerweise funktioniert für Formulare das automatische Binding von ASP.NET MVC wunderbar, in diesem Fall versagte es aber grandios. Was vor allem an der mordsmäßig ...
    
	
    After a long journey close to the community Microsoft released the first official release of its new ASP.NET Model View Controller Framework, short ASP.NET MVC 1.0.
You can download it here and find some more information about it in the MSDN here. 
Have fun with the bits! (as I will have :D) 
 ...
    
	
    Microsoft has published its second release candidate for ASP.NET MVC yesterday:
    Read more about the changes between RC1 and RC2
    Download the installer
    Download the sources
Be careful by changing the jQuery library which is shippend in the new version 1.3.1 now when you're using an older version with other plugins and libraries as jQuery UI - these could propably not be compatible to each other.
 ...
    
	
    Submitting a form with a Html.ListBox() by not selecting a single item in that list results in a NullReferenceException in the current RC1 of ASP.NET MVC. I ran into that issue today and want to ask you to give your vote for it to get it fixed before the final release comes out. Thanks! :-)
 ...
    
	
    After implementing the Html.AntiForgeryToken() helper last Friday I had to think about handling error messages (not handling the errors itself) because the AntiForgeryToken concept is based on cookies - and if the user's browser does not support these, the user won't be able to access any single form on the site because each post request will raise a HttpAntiForgeryException.
I can live with that behaviour, but I don't want to show the user a generic error message but an detailed ...
    
	
    Creating and running fulltext catalogs is not only available for the "big" versions of Microsoft SQL Server but also for the Express Edition with Advanced Services. Unfortunately Microsoft does not ship the fulltext management dialogs with Management Studio Express, so we have to handle that by Script. Very helpful is the system procedure sp_fulltext_catalog.
But as you will see there is no ongoing re-populating of the index, and I found no options in Management Studio to set this up. So I ...
    
	
    I was looking for an universal approach for doing paging with LINQ to SQL. The main goal of the last hour of research and try and error was to find a more efficient way to do this job. 
To now I was using a combination of Skip() and Take() to get only the records I need in addition to a Count(). The reason for calling the Count() method is that I need the total amount of records to calculate upcoming page numbers for extended pager scenarios (prev | 1 | 2 | 3 | 4 | next) as well ...
    
	
    Think about the following two (common) scenarios within an ASP.NET MVC application:
    You have an user control which displays - for example - an ad. To define which ad will be displayed some logic is necessary. You want to use this control on different places within your site, one time placed in your MasterPage, one time in a View.
    You have a portal page where each of your users can select some "portal objects" (calendar, news or whatever else). These "portal objects" will only be ...
    
	
    As I wrote in a previous post, Microsoft published the Release Candidate 1 of its new ASP.NET MVC framework (extension) last week. Because I am developing an application with ASP.NET MVC since October, I had to migrate from the Beta to the RC1 yesterday. Below you can find some notes about that.
1. filterContext.Cancel
To manage my custom authentication I wrote some custom AuthorizeAttributes and used filterContext.Cancel = true; for denying access to an action. This property has been ...