Comparing String.IsNullOrWhiteSpace and String.IsNullOrEmpty

IsNullOrEmpty method provides us with a good and relatively efficient method of checking whether a string is null or empty. For performance it may be better to use manual null checks. IsNullOrWhiteSpace is not ideal but is good. The method calls result in a small performance penalty. Further, the IsWhiteSpace method itself has some indirections that can be removed if you are not using Unicode data. Continue reading

Difference Between ASP.NET WebForms and ASP.NET MVC

Is ASP.NET MVC a replacement for WebForms?  The answer is No.

ASP.NET MVC, is not a replacement for WebForms. Both ASP.NET MVC and ASP.NET WebForms are built on top of the Core ASP.NET Framework. In fact a lot of features we use in ASP.NET such as Roles, Membership, Authentication and a lot of namespaces, classes and interfaces can be used in an ASP.NET MVC application. Continue reading