Search Forum
(53671 Postings)
Search Site/Articles

Archived Articles
712 Articles

C# Books
C# Consultants
What Is C#?
Download Compiler
Code Archive
Archived Articles
Advertise
Contribute
C# Jobs
Beginners Tutorial
C# Contractors
C# Consulting
Links
C# Manual
Contact Us
Legal

GoDiagram for .NET from Northwoods Software www.nwoods.com


 
Printable Version

C# ON THE NET
By Manish Babbar

Simple program to demonstarte the power of c# on the Net. This program require web server e.g(java web server ,apache etc).

Hello.cs
class zzz
{
public static void Main()
{
System.Console.WriteLine("Content-Type:text/html\n");
System.Console.WriteLine("<body bgcolor=blue>");
System.Console.WriteLine("<center><p><p>");
System.Console.WriteLine("<b>Hello to everyone.Its me Manish babbar<b>");
System.Console.WriteLine("</body>");
}
}
Compile the class Hello.cs .This will give u a exe file i.e Hello.exe.Put this file in the server's cgi-bin directory. for e.g if u have java server installed in C drive than the place to put the Hello.exe is c:/javawebserver/cgi-bin/" your file i.e hello.exe".

Copy the file Hello.exe to cgi-bin directory. now open the browser window and put the url http://localhost:8080/cgi-bin/Hello.exe considering your server is running at 8080 port.