Monday, November 29, 2010

Linq does not support Remove

I tried to remove an item from a list
obj.Remove(t => t.Name == "abc");
The first thing was the intellisense was not supporting
Cannot convert lambda expression to type because it is not a delegate type
This error message is misleading.

I've to do a find and get the object
and then i get
obj.Find(t => t.Name == "abc");
and then remove it
conversely I can do
obj.RemoveAll(t => t.Name == "abc");
Remove means remove the first entry, i don't understand why Linq is not supporting Remove and I dont see any good documentation explaining the same

Thursday, September 30, 2010

Tools for Documentation

GhostDoc is a good tool for code commensts.
SandCastle can be used for generating document from code comments

Thursday, June 17, 2010

Object Oriented Programming how it works?

How does Object Oriented Programming work in the machine level.
Is the Object Oriented code gets convereted to plain structural codes. All inheritance that we do to avoid duplication, is it geting duplicated in machine level.
What is the advantage of Object Oriented programming other than making the programmer's life easy

I've posted this in yahoo answers
http://answers.yahoo.com/question/index;_ylt=AlziVbWH1taRfXADVEg9DIAazKIX;_ylv=3?qid=20100617210950AA853NX

Thursday, April 22, 2010

WebApplication MSI Install Issue

As part of the compatibility testing of the new web Application developed by us, the client asked us to give the msi install so that they could test it on one of their test server. When they installed in the Test Server the msi failed. I asked them to run it in the Log mode and send me the Logfile.
msiexec /i /l*vx C:\SomeDirectory\SomeFilename.log

When I went through the logfile I found the following issue:
RROR : [03/03/2010 08:42:56:992] [RegisterAspNet ]: The error
indicates that this version of ASP.NET must first be registered on the machine.
ERROR : [03/03/2010 08:42:56:992] [RegisterAspNet ]: FAILED:
-2147024893

This error message is so generic that I really don’t know what is the real cause. After cheking each configuration between my dev machine and the Test Machine, we finally realized that the Web Service Extension dint have ASP.NETv2.0.50727. I asked them to re-register the Web Service Extension by running aspnet_regiis –I and it solved the problem.

Validation Controls no use

From all the experience I’d in ASP.NET, I’ve realized that there is no real value of Validation Controls. Most of the UI Validation still needs custom Javascript validation.
Even if the validations of Validation Controls fit our requirements we may still not able to use it b’coz of its poor way of displaying validations.

Friday, April 2, 2010

Dropdown tooltip IE6 Issue

Drop down box tooltip doesn't work in IE6

Web Application Publish doesn't build all projects

When a Web Application is published it doesn't automatically do a build of all the projects if the solution. So before Publish do a build and rebuild at the solution level.

Thursday, February 25, 2010

Generate Script

When generating scripts in SQL Server first generate tables and then generate stored procedures and fucntions