Tuesday, February 4, 2014

check sql default date value in C#

The Default date value of SQL server sometimes we need to check in C# your date  from sql database value = = DateTime.MinValue


  if (Model.EmployeeInformationList[i].OfficeLeaveDate!=DateTime.MinValue)  
               {  
                  // Do something  
               }  


C# print file on LAN Printer

If you want to print any file on network printer then you can try with this code block // Change Default Printer System.Ma...