Merging multiple PDFs using iTextSharp in c#.net

First You need to get all your pdf files string[] filePaths = Directory.GetFiles( "C:\\Images\\", "*.pdf"); after that you need to create a path where you save your new merge pdf file Directory.CreateDirectory("C:\\Images\\"" + "MergeFile"); Create new file name for string NewfileName = "C:\\Images\\""+ "FinalMergeFile" + ".pdf"; then  call this method CombineMultiplePDFs(filePaths, NewfileName);   public static…Read more Merging multiple PDFs using iTextSharp in c#.net

DataTable Data Export To Excel sheet by simple method.

for this method you need to give only dataTable to this method and filename public void ExportToExcel(DataTable dt, string filename) { if (dt.Rows.Count > 0) { string attachment = "attachment; filename=" + filename + "" ; Response.ClearContent(); Response.AddHeader("content-disposition", attachment); Response.ContentType = "application/vnd.ms-excel"; string tab = ""; foreach (DataColumn dc in dt.Columns) { Response.Write(tab + dc.ColumnName);…Read more DataTable Data Export To Excel sheet by simple method.

Transparent Data Encryption in SQL Server

After lot of searching found a good and easy blog for implementing Transparent Data Encryption in SQL Server 2008. Hope it will be helpful to you all. following is a link of blog. http://blog.webagesolutions.com/archives/1137 Transparent Data Encryption in SQL Server 2008, 2008R2, 2012 (Part 2) - See more at: http://blog.webagesolutions.com/archives/1137#sthash.WWBvaAhW.dpuf If you haven’t read Part…Read more Transparent Data Encryption in SQL Server

Merging multiple TIFF files in one TIFF file using c#

private static void MergeTiff(string[] sourceFiles) { string[] sa = sourceFiles; //get the codec for tiff files ImageCodecInfo info = null; foreach (ImageCodecInfo ice in ImageCodecInfo.GetImageEncoders()) if (ice.MimeType == "image/tiff") info = ice; //use the save encoder Encoder enc = Encoder.SaveFlag; EncoderParameters ep = new EncoderParameters(1); ep.Param[0] = new EncoderParameter(enc, (long)EncoderValue.MultiFrame); Bitmap pages = null; int…Read more Merging multiple TIFF files in one TIFF file using c#

In Asp.net check at least one checkbox is selected in CheckBoxList using Javascript

function Validate_Checkbox() { // GET CHECKBOXLIST OBJECT var chks= document.getElementById(''); var chkListinputs = chks.getElementsByTagName("input"); var hasChecked = false; for (var i = 0; i < chkListinputs.length; i++) { if (chkListinputs[i].checked) { hasChecked = true; break; } } if (hasChecked == false) { alert("Please select at least one Plan!"); return false; } return true; } //Calling…Read more In Asp.net check at least one checkbox is selected in CheckBoxList using Javascript