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 properties to bind DropDownList. Binding DropDownList with List…

How to add watermark to an image in c#

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 WaterMarkToImage(string ImagePath, string watermark) { Bitmap bmp; bmp = new Bitmap(ImagePath);…