How to Log an Exception With a Simple Example in C#

Views: 24 Introduction In this article, I have shared how to log an exception in a text document so that it will be stored permanently in the database. I have attached the source code in the attachment section. Write the following code in catch block of any event:


126 total views, 1 views today Ways Of Determining If A Word/String Is a Palindrome

Views: 25 Introduction In the below content, you will find simple, different, yet important ways to find whether a string /word is palindrome or not. Way 1 : Using Array. Reverse () Method using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ProgrammingInterviewFAQ.Palindrome {     class UsingReverseMethod {         static void Main() {             Console.WriteLine(“Enter the String to check:”);             String input = Console.ReadLine();             string output = string.Empty;             char[] inputtochar = input.ToCharArray(); // this line converts the string to char for reversing             Array.Reverse(inputtochar); // this line actually reverse the Converted CharArray             output = new string(inputtochar); //this line converts the ReversedcharArray back to string             if (input == output) {                 Console.WriteLine(“Palidrome”); …

324 total views, 3 views today

Closed XML To Read Excel Files In ASP.NET C#

Views: 88 Prerequisites The first step is to download the Closed XML SDK from the official site. Second step is to kindly ensure to add the DLL, mentioned above, as shown in the screenshot, given below: Kindly find the basic and installation information of OpenXML in the link, given below: …

582 total views, 2 views today

Open XML SDK To Read Workbook With Multiple Worksheets

Views: 297 Download Files: sourcecodetoreadentireworkbook Introduction In this article, I am going to show you how to read the entire Excel workbook with multiple worksheets and display the data into the Label. Prerequisites Kindly find the basic installation information of OpenXML in the link, given below: 1,057 total views, 2 views today

1,057 total views, 2 views today