You are on page 1of 5

How to Create ASP.

NET Website Step by Step


In this tutorial you will learn step by step how to create a website. But before
studying this tutorial you should have some knowledge about HTML, Java
script, ASP.NET as well. I am here giving some introduction of these that you
should have some extent knowledge of these languages.

Introduction to HTML

The HTML stands for Hyper Text markup language. The HTML is not a
programming language but it is a markup language. The markup language
means a set of markup tags.

The HTML uses the markup tags to describe the web pages. The markup tags
in HTML are known as HTML tags. The HML tags are keywords surrounded by
angles brackets like <html>, <body>, <head>in HTML are known as HTML
tags. eb pages. language. the etc. The HTML tags mostly are in pairs and
known as start tag like <html> and end tag like </html>. The start tag and
end tag also known as opening and closing tags.

The HTML pages are known as HTML documents. The HTML documents HTML
tags and plain Text. The web browser like Internet explorer is to read the
HTML documents and displays result on web pages. The web browser did not
display the HTML tags, but it uses the tag to interpret the content of the
page. The text between <html> and </html> describes the web page. The
text between <body> and </body> is the visible page content. The text
between <h1> and </h> is displayed as heading. The text between <p>
and </p> is displayed as a paragraph.

I think this enough explanation of HTML. If you want further explanation then
please try this is site (www.w3schools.com).

Introduction to Java Script

The Java Script is a scripting language and was designed to add interactivity
to HTML pages. A scripting language is lightweight programming language.
The Java script is usually embedded directly into HTML pages. The Java Script
is an interpreted language which means that scripts executes without
preliminary complication. Everyone can use Java Script without purchasing a
license that’s because Java Script is most popular scripting language on the
internet and works in all major browsers, such as Internet Explorer, Firefox,
Chrome, Opera and Safari. Java and Java script are two completely different
languages in both concept and design.
The Official name of Java Script is ECMA Script. The ECMA Script is developed
and maintain by the ECMA Organization. The Official website of ECMA
Organization is (http://www.ecma-international.org/). The ECMA-262 is
official Java Script standard. The Java Script language was invented by
Brendan Eich at Netscape with navigator 2.0 and appeared in all Netscape
and Microsoft browsers since 1996. The development of ECMA-262 started in
1996, and the first edition of Java Script was adopted by the ECMA General
Assembly in June 1997. The standard was approved as an international ISO
(ISO/IEC 16262) Standard in 1998. The development of the standard is still in
progress.

What Java Script Do:

• The HTML authors are normally not programmers, but Java script is
scripting language with a very simple syntax almost anyone can put
small ‘snippets’ of code into their HTML pages.
• A Java Script statement like this: document.write(“<h2>” + message
+ “</h2>”) can write a variable message into an HTML page. So we
can say that Java Script can put dynamic text into an HTML page.
• A Java Script can read and change the content of HTML page.
• A Java Script can be used to validate form data before it is submitted
to a server. This saves the server from extra processing. We also use
Java Script for our forms validation in our website in future notes.
• A Java Script can be used to detect the visitor’s browser, and
depending on the browsers, Java Script will load pages specifically
designed for that browser.
• A Java Script can be used to store and retrieve information on the
visitor’s computer.

These are basic uses of Java Scripts because of these uses Java Scripts is
mostly populated scripting language. It this is enough basic knowledge of
java script. In future we often use Java Script then you will also learn a lot
about Java Script.

Introduction to ASP.NET

ASP.NET is not just the next version of ASP classic but it’s the next era of
web development. ASP.NET allows us to use a fully featured programming
language to build Web application easily. In this I will explain the
fundamentals of ASP.NET and some of its powerful features such as web
services, the MSDN library as several learning resources. Theoretically, you
can build MS Word as an application and without too much effort make it
useable over internet through your browser. Because ASP.NET compiles the
code you type. When you type a code and code is executed for the first time,
it is compiled and stored in memory, means it will run faster than an
interpreted language because there is no need to recompile the code.
ASP.NET also give us full server side object oriented functionality, such as
that found in desktop applications.

ASP.NET Renders HTML

Because the Internet still has bandwidth limitations and not every person is
running the same web browsers. This issue makes it necessary to stick with
HTML as our markup language of choice. This means that web pages won’t
look quite as amazing as fully desktop application running under windows,
but with a bit of skill and creative flair, you can make some rather amazing
web application with ASP.NET.

ASP.NET processes all code on the server. When the ASP.NET code has been
processed, the server returns the resultant HTML to the client. If the client
supports Java Script, then the server will use it to make the client browser
experience quicker and easier. Even with HTML being the limiting factor
here, ASP.NET still manages to bring true OOP (Object Oriented
Programming) to the internet.

OOP (Object Oriented Programming) on the Internet

Object Oriented Programming makes it possible to build extremely large


application, while still keeping your code clean and structured. Now with
ASP.NET, we can do the same on the web. ASP.NET separates code form
display, and you can even have pages with no ASP.NET code in them at all.
By adding references in you HTML (called controls), you can tell ASP.NET that
you want a Button here, some text there, and then in your code, you can
manipulate what these controls look like, what they display, how big they
are, etc. Controls can do more than just display information. You can add
events to controls, so that when a visitor clicks on a button, then ASP.NET
executes a function of your choice.

Complete Compatibility

One of the most important goals of .Net was to allow developers to write an
ASP.NET application using multiple programming languages. As long as each
ASP.NET page contains only one programming language, you can mix and
match different pages using different languages and they will work together
effortlessly. It means now you may a team of developers with half
programmer in C# and half programmer in VB.NET, with no need to worry
about languages incompatibilities.

Web Services

One Great feature of ASP.NET is web services. Web Services means that you
can literally have several pieces of your application on different servers all
around the world, and the entire application will work perfectly and
effortlessly. Web services can even work with normal .NET Windows
applications.

Custom Controls

In ASP.NET, you can create your own custom controls, along with those
already provided. A good example of custom control is date selector. There
are so many different date formats that validation of dates can be pain, even
more so if your visitor has to type in their date 5 or more than 5 times before
it is accepted. Instead of getting users to enter a date manually, we can let
them use a date selector containing three drop down lists i.e. day, month
and year. The day list has numbers from 1 to 31, the month’s list has all of
the month’s names, and the year list has numbers from 1900 to 2050. The
user now selects a day, month, and year and your controls returns that value
in specified format. You can even set a default value by passing simple
mm/dd/yyyy or dd/mm/yyyy date to the control before it is rendered.

Class Library

ASP.NET includes an enormous class library which was built by Microsoft.


Because this class library is so large, it encapsulates a huge number of
common functions. For Example, if you wanted to retrieve data from
database and display that data in a simple grid control through classic ASP,
then you have to write quite a lot of code. But in ASP.NET, you don’t have to
write any code to display the data: you just write the code to bind the data to
an object called DataGrid. Then, you just have to create a reference on your
page to where that DataGrid should go. The DataGrid will be rendered as a
table, and will contain all of the data extracted from the database.

XML Support

ASP.NET makes it simple to use XML for data storage configuration and
manipulation. The tools which are built into ASP.NET for working with XML
are very easy to use. XML is excellent for storing information that rarely
changes, because you can just cache that information in the computer’s
memory after it has been initially extracted.

MSDN Library

Microsoft has created an amazingly well designed MSDN library for ASP.NET
and all of the other .NET Languages. It includes all full class, functions,
methods and properties accessible through ASP.NET.

The MSDN library also includes some tutorials and examples to get you
started. It may take you a while to get used to the format and layout of the
MSDN. ASP.NET library, however, once you do, you will find it’s an invaluable
resource to aid you throughout your ASP.NET learning experience. The .Net
MSDN library can be found at (http://msdn.microsoft.com/net/).