Tuesday, May 10, 2011

What is Action Filter?

Action Filter is an aspect-oriented programming technique in MVC.
Give you more power without messing up your current code.

An Action Filte can run before or after an action or result, or even handle exceptions that occur.


Reference:
http://dotnetslackers.com/articles/aspnet/ASP-NET-MVC-3-Filters.aspx

Monday, May 9, 2011

How to make div transparent cross browsers?

How to make div transparent cross browsers?

.transparent
{
   filter:alpha(opacity=45)
   -moz-opacity0.45
   opacity0.45
}

How to detect control key in Javascript

    $('body').live('keydown'function (e) {
         if (!e.ctrlKey) return;
    })

ASP.NET GZip Encoding Caveats - Rick Strahl's Web Log

ASP.NET GZip Encoding Caveats - Rick Strahl's Web Log

Sunday, May 8, 2011

How to enable session state in web services?

        [WebMethod(EnableSession = true)]