Comparing Two DataTables in C#

November 2, 2012

Comparing two DataTable and get the final table with difference in it, this kind of requirement is generally arise generally when we are doing multiple insert or update. I have scenario like get the two different tables data, compare it and if there is difference in output then insert that data into the third table. […]


Delete Duplicate Rows from DataTable

October 29, 2012

This post explains how to Remove/Delete Duplicate Rows Records From Datatable using C# or VB.NET in Asp.Net. My table in database contains duplicate records as shown in image and I want to remove those duplicate records temporarily before displaying them in gridview. For this purpose I’m filling records in DataTable and deleting duplicates. I have placed […]


Cross Site Scripting update for ASP.Net 4.5

September 17, 2011

Introduction to XSS Cross-site scripting (XSS) is a type of computer security vulnerability typically found in web applications that enables attackers to inject client-side script into web pages viewed by other users. A cross-site scripting vulnerability may be used by attackers to bypass access controls such as the same origin policy. Cross-site scripting carried out […]


Parallel LINQ Execution

June 1, 2011

Introduction Most .NET developers today are familiar with LINQ, the technology that brought functional programming ideas into the object-oriented environment. Parallel LINQ, or ‘PLINQ’, takes LINQ to the next level by adding intuitive parallel capabilities onto an already powerful framework. PLINQ is a query execution engine that accepts any LINQ-to-Objects or LINQ-to-XML query and automatically […]


Parallel Processsing with Threads Introduction

May 1, 2011

C# supports parallel execution of code through multithreading. A thread is an independent execution path, able to run simultaneously with other threads. A C# client program (Console, WPF, or Windows Forms) starts in a single thread created automatically by the CLR and operating system (the “main” thread), and is made multithreaded by creating additional threads. […]