Recent Posts

7
Comments

Microsoft MVP for the year 2011 by vik20000in

It’s been three year in a row now. I am MVP for the year 2011 also. It feels so great to get the news that I have been MVP again. Very big thanks to the MVP Team, My MVP Lead and Microsoft for giving the MVP award to me for 3 year in a row. Also a great...
Filed under: , , ,

Comments

Inserting 40,000 records in MYSQL from Asp.Net by vik20000in

Recently I got a task of importing about 40,000 records for a fixed length delimited file to MY SQL database. Copying the data into a list of Business object was not a problem, but to insert about 40000 records in MYSQL in an asp.net application looked...
Filed under: , , ,

Comments

Major Asp.Net security issue found - Temporary workaround provided by vik20000in

A new vulnerability in asp.net application was found last friday. This vulnerability exists include in all the Asp.net sites, including Asp.Net (All versions), Asp.Net MVC, SharePoint, Any framework in Asp.Net Like Dot Net nuke etc. An attacker of this...

Comments

LINQ to SQL and Case statement by vik20000in

Working with LINQ I realized that I had to use the simple case statement in my SQL query. There is no special keyword for this. To create a case statement like structure you will have to do it in the select section of the query. Below is an example of...
Filed under: , ,

Comments

Converting double to integer using cast and convert statement by vik20000in

Check out the code below. double d = 13.6; int i1 = Convert.ToInt32(d); int i2 = (int)d; if (i1 == i2) { Console.WriteLine("Equal"); } else { Console.WriteLine("Not Equal"); } The output of the above program would be “Not Equal”. The reasons being different...
Filed under: ,
1
Comments

Bankers Rounding in Math.Round Method by vik20000in

What would be the output of the following program? Console.Write(Math.Round(-0.5).ToString() + “~”); Console.Write(Math.Round(0.5).ToString()+ “~”); Console.Write(Math.Round(1.5).ToString()+ “~”); Console.Write(Math.Round(2.5).ToString()+ “~”); If you...
Filed under: , ,
1
Comments

Using Enviroment.FastFail method to exit the corrupt application Process by vik20000in

Have you ever had some point in code where you want to exit the application immediately? Normally for this purpose you would use the Application.Exit method. But Microsoft has provided a better method for this purpose which not only just exits the application...
Filed under: ,

Comments

Convert string to uppercase when comparing after normalizing instead of lowercase by vik20000in

While doing string comparison after normalizing (converting both string to upper case or lower case) we should always use the upper case. Upper case is optimized for normalization. A small group of characters, when they are converted to lowercase, cannot...
Filed under: ,

Comments

Finding Network statistics in Dot Net by vik20000in

Last few days while working with my broadband network (downloading few stuff) I wanted to check the exact amount of download per minute. I tried to check the data from task manager and resource monitor. But these gave data in terms of percentage of network...
Filed under: , ,

Comments

Community Tech days on 11th July in Kolkata by vik20000in

We are having community Tech day’s event in Kolkata on 11th of July 2010. Event will be held in Moksh Banquet Hall, Block-A, 22 Camac Street, Kolkata 700016. Click here to Register for this CTD Some of the key topics of discussion in the event and the...
More Posts Next page »