Friday, July 20, 2012

Valid* Credit Card Numbers for Testing Purposes!

http://www.getcreditcardnumbers.com/

  Visa

  • 4532648750285780
  • 4539052847080077
  • 4929736558451463
  • 4916004632027212
  • 4485755494015923

  Mastercard

  • 5494588595021003
  • 5387832766740102
  • 5529096432016938
  • 5218029725191239
  • 5344360293912780

  Discover

  • 6011552889866889
  • 6011885033431303
  • 6011033311173798
  • 6011819562341625
  • 6011299558979086

  American Express

  • 342381697387505
  • 378737047550224
  • 379264258868145
  • 371603371058332
  • 348154925738078

Entity Framework and Open Source

http://weblogs.asp.net/scottgu/archive/2012/07/19/entity-framework-and-open-source.aspx

he Entity Framework source code is today being released under an open source license (Apache 2.0), and the code repository is now hosted on CodePlex (using Git) to further increase development transparency. 

Wednesday, July 18, 2012

How to display raw html tag in ASP.NET razor view?

<div class='content'>   
   @MvcHtmlString.Create(HttpUtility.HtmlDecode(Model.Content));
</div>

How to solve "A required anti-forgery token was not supplied or was invalid."

Put a machine key in your web.config file.


How To: Configure MachineKey in ASP.NET 2.0
http://msdn.microsoft.com/en-us/library/ff649308.aspx