Download tutorial : Introduction to ASP.NET / PDF
Download tutorial : Introduction to ASP.NET / PDF
What
is an ASP File?
.NET
Framework
New in
ASP .NET
Language
Support
WebForms
Download tutorial : Introduction to ASP.NET / PDF
What
is an ASP File?
·
An ASP
file is just the same as an HTML file
·
An ASP
file can contain text, HTML, XML, and scripts
·
Scripts
in an ASP file are executed on the server
·
An ASP file has the file extension ".asp"
What is ASP .NET?
·
ASP.NET is the latest version
of ASP.
·
ASP .NET is the next generation
ASP, but it's not an upgraded version of ASP.
·
ASP .NET is an entirely new
paradigm for server-side ASP scripting.
·
ASP .NET is a part of the new .NET (dotnet) Framework.
·
An ASP.NET file has the file extension ".aspx"
.NET
Framework
·
The .NET
Framework is the infrastructure for the Microsoft .NET Platform.
·
The .NET
Framework is a common environment for building, deploying, and running Web
applications and Web Services.
·
The .NET
Framework contains a common language runtime and common class libraries - like ADO .NET, ASP .NET and
Windows Forms - to provide advanced standard services that can be integrated
into a variety of computer systems.
·
The .NET
Framework provides a feature-rich application environment, simplified
development and easy integration between a number of different development
languages.
·
The .NET
Framework is language neutral. Currently it supports C++, C#, Visual
Basic, and JScript (The Microsoft version of JavaScript).
New in
ASP .NET
- Better
Language Support
- Programmable
Controls
- Event
Driven Programming
- XML
Based Components
- User
Authentication, with Accounts and Roles
- Higher
Scalability
- Increased
Performance - Compiled Code
- Easier
Configuration and Deployment
§ Not Fully ASP
Compatible
Language
Support
§ ASP .NET uses the new ADO .NET.
§ ASP .NET supports full Visual Basic,
not VBScript like ASP.
§ ASP .NET supports C# (C sharp) and C++.
§ ASP .NET supports JScript as before
Difference Between HTML, ASP, and
ASP.NET
A static ASP or ASP.NET page is no
different from an HTML – only difference is the way the files are saved: .htm,
.asp, or .aspx extensions.
The codes below could be
saved as an HTML. ASP, or ASP.NET page,
giving the same result. View this page
as an HTML, ASP, or an ASP.NET
page.
For dynamic effect, we need to program
the Web pages behind the scene – that’s where the ASP and ASP.NET come into
picture. For example, one can create a Web page to work as a Form for data
input; however without programming, the data do not go anywhere – not saved,
nor printed, or anything.
New ASP.NET Resources
New ASP.NET Resources
The two main types of Web resources
created with ASP.NET applications are WebForms and Web Services.
WebForms:
·
WebForms allow you
to quickly develop and process forms on Web pages, and develop cross-browser
Web applications.
·
WebForms are Web
pages that are identified with the file extension .aspx.
·
An example is a
shopping cart.
Web Services:
·
Web Services are
ASP.NET Web pages that contain publicly exposed code so that other applications
can interact with them.
·
Web Services are
identified with the file extension .asmx.
·
A company could,
for example, expose the product ordering functionality of their Web site in
order to allow other Web sites to connect to this function. For each sale that
originated from other Web sites, the company could pay a referral fee.
WebForms
WebForms
are ASP.NET pages within an ASP.NET application. In previous versions of ASP, HTML is
intermixed with ASP code within the same script. The ASP.NET WebForm is
separated into two logical areas, the HTML template and a collection of code
behind the WebForm.
The
HTML template usually contains the design layout, content, and the controls.
The HTML template is created using a combination of HTML controls and
server controls.
HTML Controls
HTML
Controls are typically found on a Web page that include buttons, textboxes,
checkboxes, and dropdown lists. These controls are understood by the browsers.
Users typically use these controls to send information from a browser to a Web
server using another file or program.
For example: Yes
Server Controls
Server
controls are tags understood by the Web server. There
are several types of server controls: HTML Server Controls, ASP.NET Form
Controls, Data Validation controls, User Controls, Mobile
controls, and Literal controls. Appendix A contains some sets of server
controls.
HTML Server Controls:
·
HTML Server
controls are similar to the HTML controls, except they are processed by the
server. Using HTML Server controls, you only need to write runat =
"server" to the HTML control to transform it into an HTML Server
control.
·
By transforming
HTML controls to HTML Server controls, you can create server-side programs that
can interact with the control before it is rendered as a plain HTML control and
sent to the browser. Below is a sample of an HTML Server control.
·
For example: .........
Download tutorial : Introduction to ASP.NET / PDF
0 commentaires: