Posts

Showing posts from January, 2015

Version history of C#

 Version history of C# 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 CLR .NET C#  Release Date 1 1 1.0  February 13, 2002 1.0  1.1   1.0  April 24, 2003 2 2 2 November 7, 2005 2 3.0   3.0  November 6, 2006 2 3.5 3.0  November 19, 2007 4 4 4 April 12, 2010 4 4.5 5 August 15, 2012 4 4.5.1   6 October 17, 2013 4 4.5.2   6 May 5, 2014 C# - 1.0 Managed code C# - 2.0 Generics Nullable types Delegates Implicit method group conversions and anonymous methods Iterator blocks Partial types Covariance and Contra-variance C# - 3.0 Automatic properties Object and collection initializers Implicitly typed local variables and arrays Anonymous types Lambda expressions Expression trees Extension methods Query expressions/query comprehensions LINQ Var Type  C# - 4.0 Dynamic programming Covariance and contravarian

CORS | Access-Control-Allow-Origin | MAKING JSONP REQUEST and MVC ACTION TO RETURN JSONP

(CROSS DOMAIN COMMUNICATION WITH JSONP using ASP.NET MVC) IIS: Allow cross origin for a website  Make below entry in respective web.config   <system.webServer>    <httpProtocol>      <customHeaders>        <add name="Access-Control-Allow-Origin" value="*" />      </customHeaders>    </httpProtocol>  </system.webServer> WHY JSONP? Same-origin policy in your browser is the only reason, which blocks the script running in your window if origin is different. As per standard you can't have different origin for same window. Origin means protocol//host:port Below sample URLs will be treated as different origin for the browser. We can resolve this by adding Access-Control-Allow-Origin: * or origin in response header. Find more implementing CORS for your site. http://xyx.com  http://abc.xyx.com https://xyx.com    http://xyx.com:1212  What JSONP resolves ? Since same-orgign policy is in pl