How to check whether string is a palindrome or not using c#
A palindrome is a word, number, or other sequence of units that can be read the same way in either direction.Through below code sample,you can check whether string is a palindrome or not using c#....
View ArticleExclude specific files in file search with in a directory in C#
This article demonstrate how we can get the list of the files according specific search pattern with excluding some files. Suppose if a folder contains the following files: “etest.xml”...
View ArticlePi: Most widely known mathematical constant
Pi is the most widely known mathematical constant that is commonly defined as the ratio of a circle’s circumference to its diameter approximately equal to 3.14159. It is also represented by the Greek...
View ArticleClick event of a Button on Click event of another button in C#
The following code example demonstrates how to call the Click event of a Button on Click event of another button. The following code assumes that two Button and one TextBox controls have been...
View ArticleCheck whether a string is null, empty, or only contains the white-space...
If you are working with the .Net framework 4.5, you can use the String.IsNullOrWhiteSpace Method to specify the string is null, empty, or consists only of white-space characters.The following example...
View ArticlePad the value with leading zero using D format specifier in C#
You can pad an integer with leading zeros by using the “D” string format specifier. You can pad integer, floating-point and negative numbers with leading zeros by using a “D” format string.The...
View ArticleExample for LINQ Query to ArrayList in C#
In the past I have described some topics on the LINQ over XML such as: generate xml document with elements and attributes using linq to xml, create the xml document using linq to xml in c# and UPDATE...
View ArticleCreate new DataTable from the DefaultView of the another DataTable
The following article demonstrates how to create new DataTable from the DataView or DefaultView of another DataTable. The general requirement for doing this is that once you have retrieved DataTable...
View ArticleKeep ‘\r\n’ in XML Serialization and Deserializtion in C#
The following example shows to keep the \r\n characters in the string after Serialization and Deserializtion. Generally when you serialize an object with a string value that contains ‘\r\n\’ (Carriage...
View ArticleJQuery multiple files upload in asp.net and C# using Ajax form
In this article we will discuss about the files uploading in the asp.net. Asp.net provides the FileUpload control and you can use this with a small amount of code lines for uploading the documents....
View ArticleWriting and reading cookies in ASP.net using c#
A cookie is just a little bit of text which is send by the browser each time with the request for the page. Each time on the machine when browser will make the request to the web page, it will send the...
View ArticleCreate or open text file to write the text in c#
If you want to to create a text file and write the text and if the file already exist then just append the text in the new line using C#, you can use the following code snippet in c#. The following...
View ArticleCreate shortcut of the executable programmatically using c#
The following code snippet demonstrates that how can you create a short cut of any windows application executable programmitically using C#. Add reference of the ‘Windows Script Host Object’ Before...
View ArticleCreating a class library with C# and .NET Core in Visual Studio Code and how...
Code reusability is very important in the software development process. We can save time and resources and reduce redundancy by using the code that have already been written. A Class library is a good...
View Article
More Pages to Explore .....