aspnet
Programming with ASP.NET
Programming with ASP.NET
Hà Đồng Hưng
Lập trình với ASP.NET
2
Objectives
•
ASP.NET and the Microsoft® .NET Framework
–
“Looking back...“
–
Concepts and Architecture
•
ASP.NET Application
–
Models
•
Using Visual Studio .NET
–
Visual demos
Lập trình với ASP.NET
3
Objectives
•
ASP.NET and the Microsoft® .NET Framework
–
“Looking back...“
–
Concepts and Architecture
•
•
Databases
Lập trình với ASP.NET
5
What’s Wrong with That?
•
Mixes layout (HTML) and logic (scripting code)
•
Interpreting ASP code leads to performance loss
•
Uses scripting languages that are not strongly typed
–
Microsoft JScript®
–
Microsoft Visual Basic® Scripting Edition (VBScript)
•
Browser compatibility
•
No real state management
–
No state sharing across Web farms
–
State is lost when IIS fails
•
Update files only when server is down
Lập trình với ASP.NET
6
ASP.NET Core Concepts
•
Separate layout and business logic
Windows Forms
Services Framework
Base Data Debug ...
The .NET Framework Architecture
Lập trình với ASP.NET
9
Web Application Model
Web Client
Operating System
ASP.NET
Applications
IIS
.NET
Framework
Lập trình với ASP.NET
10
Class Hierarchy 1/2
•
Namespaces
–
Hierarchically structured
–
Dot-syntax, grouping classes logically
–
Abstract base classes and class implementations
•
You are free to implement your own
–
Sample: System.Web.UI.WebControls.Button
namespace class name
•
Many programming languages
•
Server controls
•
Built-in security
•
Integration with Microsoft ADO.NET
•
Full support for XML, CSS
•
Built-in features for caching, cultures…