Oct 22
This post was written in 2009, please read this stack on why eval is always a bad idea:
https://stackoverflow.com/questions/13167403/is-javascript-eval-so-dangerous</strong>
Usually when I need to call a JavaScript function using a string I use:
function myUsefulFunction() { //useful code }
var foo = 'myUsefulFunction();';
eval(foo);
However a more elegant approach would be to use:
function myUsefulFunction() { //useful code }
this['myUsefulFunction']();
Continue reading »
Tagged with: javascript • yam
Oct 11
Despite the rumours LINQ to SQL is fully supported in .NET 4.0, it has even been improved including better mockability, link below has more details . Good news for all the early adopters you don’t have to redevelop all your LINQ to SQL apps to entities, just to be supported by Micro$oft.
http://damieng.com/blog/2009/06/01/linq-to-sql-changes-in-net-40
Tagged with: .NET • LINQ • yam
Sep 12
I am currently converting a lot of legacy ASP.NET Web Sites over to ASP.NET Web Application Projects. The reason for doing this is so I can make my NUnit Test project reference my Web Application Project. There are various discussions about ASP.NET: Web Site vs. Web Application, but for me it was solely for testability purposes.
In Visual Studio 2008, the process to convert a Web site over to a Web Application project is relatively painless: Continue reading »
Tagged with: App_Code • ASP.NET • NUnit • Profile • Testability • Visual Studio 2008 • Web Application Project • Web Site • yam
Recent Comments