Categories
C# / .NET Program

C# program to reverse a String

This is an simple C# program to reverse a string Program using System; namespace StringReverseProgram { class Program { static void Main(string[] args) { string input, output; Console.Write(“Enter an string to reverse: “); input = Console.ReadLine(); //Converting an String datatype to Char Array datatype for easy reverse operation char[] rev = input.ToCharArray(); Array.Reverse(rev); //Again converting […]

Categories
C# / .NET Program

Substring method in C# using Single Arugment

Read “SubString method” to understand the working of SubString method in C# Program using System; namespace StringFunctions { class Program { static void Main(string[] args) { string input = “HAIHOWAREYOU”; string output=input.Substring(3); Console.WriteLine(output); Console.ReadKey(); } } }  Output HOWAREYOU  

Categories
Tutorial

How to use GridView Control in ASP.NET

GridView Control is an very important topic that every students and programmers should know. I have faced this question in my 2 question, they simply ask us to write the GridView Asp .NET coding. Let us understand how to use GridView in ASP .NET. STEP 1: Open an black ASP .NET website from Visual Studio. […]

Categories
Program

What is difference between PHP and ASP?

Before knowing difference between PHP and ASP, we must know the expansion of PHP and ASP, PHP – Hypertext Pre Processor ASP – Active Server Page   PHP [dropcap background=”yes” color=”#333333″] I[/dropcap]ts is an web development language, it is a popular general-purpose scripting language that is especially suited to web development. Fast, flexible and pragmatic, PHP […]