Skip to main content

Posts

Comparing Strings in C#.Net

In order to compare strings for their equivalence, we have to follow this Rule from Microsoft " When you specify either  StringComparison.Ordinal  or  StringComparison.OrdinalIgnoreCase , the string comparison will be nonlinguistic. That is, the features that are specific to the natural language are ignored when comparison decisions are made. This means the decisions are based on simple byte comparisons and ignore casing or equivalence tables that are parameterized by culture." -- Saravanan

Windows AppFabric FAQ's

Exception Solution An existing connection was forcibly closed by the remote host if you're IIS applicatin is running under and Application Pool that uses the identity of DOMAINNAME\domainuser, you would add this to the allowed client account list with the following command: Grant-CacheAllowedClientAccount DOMAINNAME\domainuser. [OR] use this Grant-CacheAllowedClientAccount everyone [OR] Set-CacheClusterSecurity -ProtectionLevel None -SecurityMode None Cache Configuration with Windows PowerShell Reference Cache Administration with Windows PowerShell Reference -- Saravanan

Windows AppFabric Caching

Windows AppFabric Caching Here is a collection of links that are useful for kickstarting the use of Windows AppFabric Caching, formerly known as Velocity Caching from Microsoft. Tutorials Concepts and Architecture Physical Architecture Diagram Logical Architecture Diagram AppFabric Caching Concepts Caching Admin in Windows PowerShell -- Saravanan

Migrating from ASP.Net MVC2 to MVC3

In order to migrate an existing ASP.NET MVC2 Application to ASP.NET MVC3 application, we have to follow the steps described here so that we can consume the Razor views inside the migrated application along with the latest jQuery features and the Mordenizer and also can switch to Entity Framework4. The upgrade process is described here This task was just a cake. Nice details and procedure from Microsoft. -- Saravanan

jQuery Tips

to select the first option in a select using jquery: $("#target option:first").attr('selected','selected'); to get the value of the first option tag in a select using jquery $("#target").val($("#target option:first").val()); to remove the "selected" from any options that might already be selected $('#target option[selected="selected"]').each( function() { $(this).removeAttr('selected'); } ); -- Saravanan