Search This Blog

Friday, July 16, 2010

Chapter 1: Introduction to ASP.NET

ASP.NET (acronym for Active Server Pages) is Microsoft’s technology for creating dynamic, rich, attractive and scalable web applications that run on server instead on client’s pc. Before ASP.NET, (in the era of CGI standard) web servers had to launch a separate instance of a website for each request. This method, as you can imagine, can generate problems for a famous website that accepts hundreds of requests in a minute. It would definitely generate a lot of load on the web server. To fix this Microsoft created technologies like ASP and ASP.NET. The original ASP technology became very famous, more than Microsoft could imagine. ASP was being used in almost every category of websites. The developers of ASP didn’t design it with that picture in mind, so it started to fall. To correct the mistakes of ASP, ASP.NET was developed as an industry strength web application framework that could address the limitations of ASP.

Note: ASP and ASP.NET despite having the same name (or partially same name) are radically different from each other. You can learn the differences between ASP and ASP.NET via internet. They won’t be covered in this tutorial.

Before server side programming, web developers widely used client side programming to enhance their websites (Client side programming is also used widely today). In client side programming, the developer included embedded applets (a very small application that performs a specific task) that were downloaded on the client’s computer and were executed on client’s pc rather than the server.

One of the major problems in this methodology that it wasn’t supported equally by all browsers or operating systems. So, the developers had to test their web applications in different browsers and operating systems and even had to provide browser updates. Server side programming was a better alternative.

Server Side Programming:
In server side programming, as used in ASP.NET, all the web application code is executed on the server and the client’s browser just receives the HTML document.

This figure explains how server side programming works (Click on it to enlarge):

So, that’s all for Chapter 1: Introduction to ASP.NET. In the next chapter, we will create a simple web application using ASP.NET 3.5. Make sure you read the section basic skills and requirements before proceeding to Chapter 2: Creating A Simple ASP.NET Page.

Thursday, July 15, 2010

ASP.NET Tutorial:

Hello friends, welcome to ASP.NET tutorial by hard.CoderX (). In this tutorial, you’re gonna learn basic and some advance features of ASP.NET and how to implement them in your website. In end of each chapter, we’ll present you a real-world problem you might face while making a website in ASP.NET. Before jumping to Chapter 1: Introduction to ASP.NET let us go through with the basic software requirements and skills one should have before reading this tutorial:

You must have ASP.NET 3.5 installed on your PC (It comes with .NET Framework 3.5 or higher), ASP.NET 2.0 will also work. If there is a feature which is present in ASP.NET 3.5 and not in ASP.NET 2.0, we’ll state it explicitly. Since you can access the features of ASP.NET 2.0 while having ASP.NET 3.5 installed, we recommend you to have ASP.NET 3.5 installed.

• We’re using Visual Studio 2008 Professional edition for this tutorial. You can install Visual Studio 2008 express (free edition) if you don’t wanna buy a license! However, if you don’t want to spare your time in hundreds of MBs of downloading, you can do the same work in Visual Web Developer 2008, which is designed specifically for working in ASP.NET WebPages.

You must have basic knowledge of Object Oriented Programming concepts, as well as the knowledge of C#. C# basic know-how (like creating classes, calling methods, using event-handlers) is compulsory.

• Basic knowledge of HTML and / or XHTML is compulsory. Though if you don’t know about HTML or XHTML, don’t worry, you can learn about them from This is the place from where I learnt HTML and XHTML before learning ASP.NET. For ASP.NET, you just need to know the basics of HTML and XHTML.

• Know-how of basic database concepts (like relationships between entities, basic DML, DCL, and DDL queries) is optional and will be useful in future chapters where we will connect a database with our ASP.NET websites.

So, these were the basic software and skill requirements for this tutorial. Let’s begin with Chapter 1: Introduction to ASP.NET

Saturday, June 26, 2010

Introduction to C# : Part-1

C# is very similar to Java and somewhat closer to C++

According to an expert::
C# is : 70% Java, 10% C++, 10% Visual Basic, 10% new.
Moreover using C#.NET with Visual studio gives C# extreme power, with ease of drag and drop and visual development, lots of code writing is reduced and Designing Application GUI is efficient, simplified and enhanced.
C# development started in January 1999, Anders Hejlsberg (smiling at right-hand side) was the team lead he build a team and started developing C# at Microsoft.

Why learn C#?
General Benefits::
  • It’s easy and powerful: People with background in C/C++, java will quickly learn C#, even its good for a completely new programmer, as I say its Newbie Friendly with fast learning curve.
  • Market demand: C# has become an industry standard, and there is always a need for C# Developer, just check the any local job site or ask a developer.
  • Widely used : so more help available online, large amount of source code available to enhance learning.
  • You may grasp Java easily.(if you haven’t learn it before)
Technical Benefits::
  • Windows Application development is greatly simplified.
  • Automatic garbage collection.
  • Automatic variable initialization ( can be done manually using static constructors)
  • No header files ".h" required.
  • No global functions or variables, everything in inside a class, fully object oriented.
  • No pointer required (but optional) which was harder to learn for beginners and was error prone.
  • Definition of classes and functions can be done in any order.
  • Declaration of functions and classes not needed.
  • Classes can be defined within classes.
  • Further more if you have learned C#, there is an opportunity for you to get started learning to make web application.
Advantages over Java:
  • Getter/Setter (Get/Set) methods are simplified and shorten, so it results in clean code.
  • Clean and separated events management as compare to java.
Possible usage of C# application:
Desktop DataBase Application:A database application which fetches, updates, deletes data and many more.
Desktop Utilities:It’s a long list from games, to Video/Audio players, system tools it’s a wide variety.

FAQs ::
What C# version this site will teach?
Well first you need to learn the language constructs that is learning the language syntax works.
C# version, there is only the concept of .Net version that .NET 1.0, 1.1, 2.0, 3.0, 3.5 and 4.0
Each new .NET version adds new functionality in the language, so first learn the language construct then stay up-to-date with the .NET version.

External Links:
C# at Wikipedia

Thursday, June 3, 2010


Hello Folks.
Well, this Blog will contain Web and Desktop Development stuff..
Primary areas of development include, Data structures in C++, C#, ASP.NET as well as some technology related news and gadgets...
Stay tuned...