1 ASP.NET Introduction
·
1.1 What isASP.NET ?
·
1.3 FirstAsp.Net Program
ASP.NET Tutorial , Help and Source Code in VB.NET and C#
·
ASP.NET is a
technology for developing, deploying, and running Web applications.
·
ASP.NET is a part
of the Microsoft .NET Framework, so all .NET Framework features are available
to ASP.NET applications.
·
ASP.NET web pages
are simply pure text, like HTML files.
·
ASP.NET web pages
are the main building block for application development.
·
You can develop
your applications in any language compatible with the common language runtime,
including Microsoft Visual Basic and C#.
·
These languages
enable you to develop ASP.NET applications that benefit from the common
language runtime, type safety, inheritance, and so on.
·
ASP.NET
incorporates all the important standards of our time, such as XML and SOAP,
plus with ADO.NET and the foundation class libraries.
·
Visual Studio
.NET is an excellent development tool for constructing ASP.NET web
applications.
·
It provides all of the necessary tools and
support for creating ASP.NET web applications.
·
ASP.NET web
applications are hosted by Internet Information Server (IIS), which accepts
requests from clients and optionally authenticates them before passing the
requests on to Web application. From the
following chapters you can learn more about ASP.NET technology in detail.
1.1 What is
ASP.NET ?
·
ASP.NET introduces
entirely a new object-oriented execution model. In order to overcome the
limitations of ASP (Active Server Pages) ,
·
Microsoft has
developed a new technology called Microsoft ASP.NET . ASP.NET is more than just
the next version of ASP technology, using its mature programming languages
VB.NET and C#.
·
ASP.NET is built
on the Common Language Runtime (CLR), allowing programmers to write ASP.NET
code using any supported .NET languages like VB.NET and C#.
·
Unlike the ASP
runtime, ASP.NET uses the Common Language Runtime (CLR) provided by the .NET
Framework.
·
The Microsoft
.NET Platform provides all of the tools and technologies that are needed to
build distributed Web applications.
·
ASP.NET is
integrated with Visual Studio .NET, which provides a GUI designer, a rich
toolbox, and a fully integrated debugger.
·
In ASP.NET, you
can write the HTML code in the .aspx file and the code for programming logic in
the code-behind file (.aspx.vb or .aspx.cs ).
·
Also ASP.NET introduces two sets of controls,
the HTML controls and the Web controls, which are collectively known as
"server controls."
1.2 Asp.Net and .Net Framework
The .NET Framework is an essential technology for
ASP.NET development. It provides the basic system services that support
ASP.NET, as well as Windows Forms development, the new rich client development
technology provided by .NET. The .NET Framework consists of two main parts:
1.
The common language runtime : It provides a run-time environment for the
execution of code written in any .NET language.
2.
The .NET Framework class library : It is designed to support the efforts of
developers by providing base classes from which developers can inherit.
1.3 First
Asp.Net Program
ASP.NET is integrated with Visual Studio .NET, which
provides a GUI designer, a rich toolbox, and a fully integrated debugger. In
ASP.NET, you can write the HTML code in the .aspx file and the code for
programming logic in the code behind file (.aspx.vb or .aspx.cs ) depends on
which .Net language you are selected. Web
Forms allow you to apply Rapid Application Development techniques to building
web applications. Simply drag and drop controls onto your form, double-click on
a control, and write the code respond to the associated event. You can program
ASP.NET in any language that supports the .NET CLS.
Select Visual Studio from Startà
All Programs . Select New Web Site from File menu of Visual Studio. Then you can see a window similar to the
following image.
Select ASP.NET Web Site from the New
Web Site dialog box. The Name and Location edit fields will contain default
values. If you want to change the name , you can do it by editing the Location
field. From this dialog box you can select which language (C# or VB.NET) you
want to develop ASP.NET website. You can select your convenient language from
the Language combobox.
After click the OK button you will get a blank form. You can
select controls from the Toolbox which is located left side to the blank form.
Click on the Label control and drag
it to the design surface. It will automatically go to the upper-left corner of
the design surface and contain the word Label.
Select the label control and change the Text property of
label control to "This is my first
asp.net program". The property window is placed right side down of
your Visual Studio Environment.
After the coding, press F5 to run
the web application. When either the C# or VB.NET version is run, it will look
like the browser shown.
1.4 Deploy an ASP.NET Web App
When
you want to deploy your ASP.NET program on IIS, all you need to do is set up an
IIS virtual directory on the target machine and copy the application files to
it. You can simply copy the application files to the directory structure on the
production server, using one of the following tools:
1. The XCOPY command-line tool can copy files from one
computer to another on an intranet or internal network.
2.
Windows Explorer can copy files from one computer to another on an intranet or
internal network.
3.
You can use the FTP tool of your choice to copy application files from one computer to another
over the Internet.
4.
If your application has been developed using Visual Studio .NET, you can use
the Copy Project command to copy files from one computer to another on an
intranet or internal network.
No comments:
Post a Comment