C# From Scratch

1) Download and install .NET Framework Beta 2   2) Download the C# Manual and take a look at it. This has A LOT of important information.GREAT TUTORIAL FOR BEGINNERS!! 3) Create a file called hello.cs which has the following code:using System;class Hello {  static void Main() {   Console.WriteLine("Hello world");  }} 4) Go to the […]

Read more

TCPDate Server / Client

This is the implementation of “System.Net.Sockets”. In this example we will learn how to use the “TCPListener” and “TCPClient” classes from the “System.Net.Sockets” namespace. This example consists of two files. The “DateServer” class which uses the “TCPListener” class to accept requests from new clients. Once the client is connected with the server, the server will […]

Read more

Working with Arrays in C#

Open your favorite text editor and type the following C# source code: using System; public class ArrayMembers { public static void Main(string[] args) { //Skip 1 line Console.WriteLine(“\n”); //Iterate through the items of array args using foreach foreach(string s in args) { Console.WriteLine(s); } //Skip 2 lines Console.WriteLine(“\n\n”); //Declare array strNames string[] strNames = {“Joe”,”Mary”,”Bill”,”Fred”}; […]

Read more

C# Arrays

Open your favorite text editor and type the following C# source code: using System; public class ArrayMembers{ public static void Main(string[] args) { //Skip 1 line Console.WriteLine("\n"); //Iterate through the items of array args using foreach foreach(string s in args) { Console.WriteLine(s); } //Skip 2 lines Console.WriteLine("\n\n"); //Declare array strNames string[] strNames = {"Joe","Mary","Bill","Fred"}; //Iterate […]

Read more

in ASP.NET

In ASP.NET 1.0 you would find a number of server controls, identified by <asp: prefix > and can be categorized as   – HTML Server Controls- Web Form Controls- List Controls- Rich Controls- Validation Controls- Mobile Controls With Server Controls we get following benefits :   – XProvides consistent naming standard- XProvides consistent properties- XProvides […]

Read more