What is Unit Testing in .Net
Unit testing is a kind of testing done at the developer side. It is used to test methods, properties, classes, and assemblies. Unit testing is not testing done by the quality assurance department. To know where unit testing fits into development, look at…
Tips for Database ConnectionStrings of Various Provider
Tips for Database ConnectionStrings of Various Provider Microsoft SQL Server // ODBC DSN using System.Data.Odbc; OdbcConnection conn = new OdbcConnection(); conn.ConnectionString = “Dsn=DsnName;” + “Uid=UserName;” +…
Tips to Bind Dropdownlist in Asp.net
Tips to Bind Dropdownlist in Asp.net We can bind DropDownList in different ways by using List, Dictionary, Enum and DataSet. To bind DropDownList, we need to set some properties: DataSource DataValueField DataTextField Let’s see how to use these…
Tips for IIS performance tuning
IIS performance tuning Custom Error Pages Although this is quite simple to do, few people seem to take advantage of error page customization. Just select the “Custom Errors” tab in MMC and map each error, such as 404, to the appropriate HTML…
What is Object Oriented Programming( OOP ) Concept ?
Object Oriented Programming Object-oriented programming (OOP) is a programming paradigm that uses “Objects “and their interactions to design applications and computer programs. There are different types of OOPs are used, they are Object Class Data…
How to Generate SHA1 Cryptography in C# and VB.Net
Generate SHA1 Cryptography This part has been copied directly from Wikipedia SHA-1 is a cryptographic hash function designed by the United States National Security Agency and published by the United States NIST as a U.S. Federal Information Processing…
How to add watermark to an image in c#
watermark to an image using System; using System.Drawing; using System.Drawing.Drawing2D; public class Watermark { //this fuction takes an Image and String for watermarking as argument //and returns an Image with watermark public Bitmap…
Dictionary, How to read-write data in using C# and VB.net
What is Dictionaries ? Dictionary is a collection object which is used to store data in key and value pairs. In this, object Key values must be always unique and it won’t accept any null or duplicate values because we use keys to identify values stored…
Top New Features in Visual Studio 2012
1-Opening VS2010 Projects and Not Breaking Things Remember when VS2010 came out? Remember wanting to use it on your team? Remember how projects were incompatible so you had to wait forer the whole team to upgrade? Yea, that sucked. Oh wait. Remember…
Top 5 new features of Visual Studio 2010 and .NET 4
There lots of improvement in Visual Studio 2010 over past version. Below are some new great features of Visual Studio 2010 – Better code intellisense Visual Studio 2010 has better code intellisense support which make it easier for look for methods…