Category Archives: ASP.NET
Uploading Files to Server in C#/C-Sharp
How to Check if File Exists in C Sharp/C# ?
Conversion from String to Double using C#
Get characters in a string – C Sharp/C#
Hi, Sometimes you may need to get all the characters in a string using C Sharp/C#. The following code gives you an example of how to get or display all the characters of a given string. Output: sampleString[0] = I sampleString[1] = sampleString[2] = L sampleString[3] = o sampleString[4] = v sampleString[5] = e sampleString[6] = sampleString[7] =β¦ Read More »
Program to reverse the digits of a number in C Sharp/C#
How to replace a substring in C Sharp/C# ?
Sort elements in a String Array – C Sharp / C#
Hi, In order to sort the elements in a string array in C Sharp/C#, we use the sort() method. Given below is a simple example using sort() method to sort the elements in a string array. It will print out, Sorted string Array: urStringArray[0] = apple urStringArray[1] = coderz urStringArray[2] = heaven123 urStringArray[3] = heaven777 urStringArray[4] = xyloβ¦ Read More »
A simple Exception Handling example – C Sharp/C#
Rename Namespace in C Sharp/C#
C#/C Sharp – Random Access File Example
Program for Palindrome checking in C Sharp/C#
Copy a file in C Sharp/C# without using FileInfo
Copying a file using FileInfo – C Sharp/C#
C Sharp/C# – Read a complete text file
C Sharp/C# – Writing to a text file
C Sharp/C# – String Uppercase/Lowercase Conversion
Hi, It will be very useful to know how you can convert a given string into uppercase or lowercase using program. We are going to show you , how to convert a given string into uppercase or lowercase using C Sharp/C#. See the example given below. Output : Lowercase of sampleString : coderzheaven Uppercase of sampleString : CODERZHEAVENβ¦ Read More »
Compare two strings in C Sharp/C# – Case Insensitive
Program to generate Fibonacci series in C Sharp/C#
Hi, Here is a simple program to generate Fibonacci series using C Sharp /C#. It will generate Fibonacci numbers < 100. [csharp] class MainClass { public static void Main() { int oldNum = 1; int presentNum = 1; int nextNum; System.Console.Write(presentNum + ","); while (presentNum < 100) { System.Console.Write(presentNum + ","); nextNum = presentNum + oldNum; oldNum =β¦ Read More »
Get files from a directory – C#/C Sharp
C#/C Sharp – Delete file in a folder
How to create a text file in C# ?
A simple exception handling using C#
How to find a leap year using C# ?
- 1
- 2