February 2008 - Posts

0
Comments

Javascript Tips: Carefully use "this" when writing classes, else you may cause memory leak. by shahed

Lets say we want to declare a class in Javascript, which is equivalent to the following C# class. public class Student { public string FirstName = "" ; public string LastName = "" ; public Student( string firstname, string lastname...
0
Comments

Solving DNN deployment issues, Redirecting to localhost and Running DNN in a different port by shahed

I was trying to host a small DNN application in one of our Server and I was facing couple of issues. Problem 1: The first problem I faced is it was always redirecting to localhost, whenever I tried http://domain.com/dnn it was redirecting to http://localhost...
0
Comments

Dotnet Nuke Tips: Two common error while writing the SqlDataProvider by shahed

Two common errors done while writing the SqlDataProvider SQL for Dotnet Nuke Modules are 1. Not saving the file that contains SqlDataProvider SQL codes in the correct format. A quick trick is to open the files in NotePad and save them as "Unicode"...
0
Comments

LINQ Tips: Implementing IQueryable Provider by shahed

Check out the following from Matt Warrens blog posts, if you are interested on how to implement IQueryable Provider. source: http://blogs.msdn.com/mattwar/archive/2007/07/30/linq-building-an-iqueryable-provider-part-i.aspx Part I - Reusable IQueryable...
0
Comments

LINQ Tips: Querying ArrayList via LINQ by shahed

Problem If you try to query an ArrayList via LINQ you might be surprised to see that its not supported and throwing an exception. In other words the following query will not work at all. ArrayList students = GetStudents(); var query = from student in...
0
Comments

LINQ Tips: Querying disposable objects in an using block by shahed

Be careful while querying the disposable object inside an using block, you may find that the yielded objects are all disposed before you have used them. To get over this issue use the ToList() method. You can exit the using block, and yield the results...
Powered by Community Server (Commercial Edition), by Telligent Systems