Show default image if image field NULL in kendo grid

If image field is null in kendo grid and you want to show default image then use this code.It will show default image if image field null. { field: "Photo", title: "Photo", template: function(dataItem) { return kendo.template( '<img src="#= Photo #" alt="image" width="100px" height="100px" />' )({Photo: dataItem.Photo || 'Add Your Default Image Path Here'}); } width: 100 }

February 11, 2015 · 1 min

C# Program - How to find factorial of a number in C# ?

Find factorial of a number in C# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FactorialNumber\_ForLoop { class Program { static void Main(string\[\] args) { int number, fact = 1; Console.WriteLine("Enter the number"); number = int.Parse(Console.ReadLine()); for (int i = number; i >=1; i--) { fact = fact \* i; } Console.WriteLine("{0} Factorial is {1}",number,fact); } } } Output: Enter the number 5 5 Factorial is 120

January 11, 2015 · 1 min

C# Program - How to find factorial of a number in C# using recursion ?

Find factorial of a number in C# using recursion using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FactorialNumber\_Recursion { class Program { static void Main(string\[\] args) { int number =0; Console.WriteLine("Enter the number"); number = int.Parse(Console.ReadLine()); int fact = Factorial(number); Console.WriteLine("{0} Factorial is {1}", number, fact); } public static int Factorial(int num) { if (num ==0) { return 1; } else { return (num \* Factorial(num - 1)); } } } } Output: Enter the number 5 5 Factorial is 120

January 11, 2015 · 1 min

Evernote2Onenote [VIDEO]

Export Evernote notes to Onenote

January 4, 2015 · 1 min

ASP.Net MVC5 Identity 2 : Add UserName For Registration and Login [VIDEO]

ASP.Net MVC5 Identity 2 : Add UserName For Registration and Login

December 27, 2014 · 1 min