Posts

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  ...

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.xy...

MVC, MVP and MVVM

Image
MVC is so popular now days and the web development paradigm shifted to imitate web application as a WinForm application in terms of features and deeds, countess approach, patterns and where third parties are attempting to settle this matter. When I started my career with ASP and landed on MVC with lots of tests, the test which I developed during the progression of my development phase are now I am releasing in respect of all my colleges who is settling web applications endeavors. When we say web application, since nature of application is stateless these are the basic challenges we face. Managing and Maintaining UI state Where to put logic ether in UI level or Execution side UI and Data sync with business model. *May be in your scenario you have faced more than this list. As industry have multiple design patterns to scope design concerns and so for the scenarios where we have UI, logic and business model and we are looking to make coordination between i...

ASP.NET MVC Tips

Image