4. What is .NET?
•
ASP.NET stands for Active Server Pages
.NET
•
.NET is a platform provided by Microsoft
that provides a standardized set of
services.
•
•
•
It’s just like Windows, except distributed over
the Internet.
It exports a common interface so that it’s
programs can be run on any system that
supports .NET.
A specific software framework
5. .NET Framework
•
Programming model for .NET
•
It is a platform for application developers.
•
Provides a very good environment to
develop networked applications and
Web Services
•
Provides programming API and unified
language-independent development
framework
6. The Core of .NET Framework:
CLR & FCL
•
Common Language Runtime
•
•
Language integration
•
Multiple versioning support
•
•
Garbage collection
Integrated security
Framework Class Library
•
Provides the core functionality:
ASP.NET, Web Services, ADO.NET, Windows
Forms, IO, XML, etc.
8. .NET Framework
Common Language Runtime
•
CLR manages code execution at runtime
•
Memory management, thread
management, etc.
Common Language Runtime
Operating System
9. .NET Framework
Base Class Library
•
Object-oriented collection of reusable types
•
Collections, I/O, Strings, …
.NET Framework (Base Class Library)
Common Language Runtime
Operating System
10. .NET Framework
Data Access Layer
•
Access relational databases
•
Disconnected data model
•
Work with XML
ADO .NET and XML
.NET Framework (Base Class Library)
Common Language Runtime
Operating System
11. .NET Framework
ASP.NET & Windows Forms
•
Create application’s front-end – Web-based user
interface, Windows GUI, Web services, …
ASP .NET
Web Forms Web Services
Mobile Internet Toolkit
Windows
Forms
ADO .NET and XML
.NET Framework (Base Class Library)
Common Language Runtime
Operating System
12. .NET Framework
Programming Languages
•
Use your favorite language
C++
C#
VB.NET Perl
…
J#
ASP .NET
Web Forms Web Services
Mobile Internet Toolkit
Windows
Forms
ADO .NET and XML
.NET Framework (Base Class Library)
Common Language Runtime
Operating System
13. .NET Framework
Common Language Specification
C++
VB
Common Language Specification…
C#
Perl
J#
ASP .NET
Web Forms Web Services
Mobile Internet Toolkit
Windows
Forms
ADO .NET and XML
.NET Framework (Base Class Library)
Common Language Runtime
Operating System
14. .NET Framework
Visual Studio .NET
C++
C#
VB
Perl
…
J#
Common Language Specification
Web Forms Web Services
Mobile Internet Toolkit
Windows
Forms
ADO .NET and XML
.NET Framework (Base Class Library)
Common Language Runtime
Operating System
Visual Studio .NET
ASP .NET
15. .NET Languages
•
Languages provided by Microsoft
•
•
Third-parties languages
•
•
Perl, Python, Pascal, COBOL etc…
Advanced multi-language features
•
•
C++, C#, J#, VB.NET, JScript
Cross-language inheritance and exceptions handling
Object system is built in, not bolted on
•
No additional rules or API to learn
16. C#
• C# (pronounced "C sharp") is a simple, modern,
object-oriented, and type-safe programming
language. It will immediately be familiar to C and
C++ programmers. C# combines the high
productivity of Rapid Application Development
(RAD) languages and the raw power of C++.
• Visual C# .NET is Microsoft's C# development tool. It
includes an interactive development environment,
visual designers for building Windows and Web
applications, a compiler, and a debugger. Visual
C# .NET is part of a suite of products, called Visual
Studio .NET, that also includes Visual Basic .NET,
Visual C++ .NET, and the JScript scripting language.
All of these languages provide access to the
Microsoft .NET Framework, which includes a
common execution engine and a rich class library.
17. C# Language
•
Mixture between C++, Java and Delphi
•
Component-oriented
•
•
Attributes, XML documentation
•
•
Properties, Methods, Events
All in one place, no header files, IDL, etc.
Everything really is an object
•
Primitive types aren’t magic
•
Unified type system == Deep simplicity
•
Improved extensibility and reusability
20. Visual Studio .NET
• Development tool that contains a rich set of
productivity and debugging features
•
•
•
•
•
•
•
Supports managed and unmanaged applications
Supports C#, C++, VB.NET, …
Many useful tools and wizards
Windows Forms Designer
ASP.NET Web Forms Designer
Web Services support
SQL Server integration with ADO.NET and XML
21. VS.NET – Single Development
Environment & Skill Set
• From Visual Studio.NET you can:
• Write code
• Design user interface
• Study documentation
• Debug
• Test
• Deploy
• Same tools for all languages
• Same tools for all platforms
23. ASP.NET
•
Rich page architecture – “Web Forms”
•
Rich set of ASP.NET server controls
•
Data validation
•
Data bound grids
•
Event-driven execution model
•
Great Web-services support
•
Easy to deploy
•
High reliability and availability
•
High performance and scalability
•
Scalable handling of state information
25. MyFacebook
This website allows users to register, add other
members as friends and create and join
communities. It provides typical features like
change profile, change password etc.
Technologies and Products Used
• ASP.NET
• C# language
• Visual Studio.NET 2012
• Microsoft Office Access 2007
• ADO.NET
• Master pages and Themes
26. Modules Details
The following are major activities in this application.
• Sign up
• Login
• Edit profile
• Change photo
• Search for Friends
• Add a user as friends
• Sending posts to other users timeline
• Liking and Commenting on posts
The .NET framework exposes numerous classes to the developer. These classes allow the development of rich client applications and Web based applications alike.these classes have been divided into 4 areas.
ASP.NET provides the core Web infrastructure such as Web Forms for UI based development and Web Services for programmatic interface development, User interface development on the Windows platform can be done using Windows FormsADO.NET and XML provide the functionality for data access.Finally, the core base classes provide infrastructure services such as security, transaction management etc.