Welcome to Bangladesh Microsoft Technology Community Sign in | Join | Help

February 2008 - Posts

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

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) {
posted by Shahed | 0 Comments

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

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/dnn
posted by Shahed | 1 Comments

Dotnet Nuke Tips: Two common error while writing the SqlDataProvider

Two common errors done while writing the SqlDataProvider SQL for Dotnet Nuke Modules are1. 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".2. Not
posted by Shahed | 0 Comments

LINQ Tips: Implementing IQueryable Provider

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
posted by Shahed | 0 Comments

LINQ Tips - Queries at Runtime in C#

Recently, I came across this great article written by Tomas Petricek, a C# MVP, I thought I would share with you. source:http://tomasp.net/blog/dynamic-linq-queries.aspx Building LINQ Queries at Runtime in C# Since the first beta versions of LINQ we could
posted by Shahed | 0 Comments

LINQ Tips: Querying ArrayList via LINQ

ProblemIf 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
posted by Shahed | 0 Comments

LINQ Tips: Querying disposable objects in an using block

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
posted by Shahed | 0 Comments