3. ASP.NET - 1.0 - 4.0
Drag 'n drop GUI Programming
Data Controls -
GridView,FormView,DetailsView,ListView,DataPager
Data Access Controls –
SqlDataSource,ObjectDataSource
Login control , Navigation control
Masterpages
Themes-Skins
Code behind
LINQ
7874391191 www.shyamsir.com
4. ASP.NET
When we generally talk about ASP.NET applications
built on a tiered architecture they are divided in four
parts:
UI (ASPX pages)
Code-behind (ASPX.CS pages)
Middle tier (.NET classes)
Data layer.
7874391191 www.shyamsir.com
5. Problems with ASP.NET
Unit Testing
Separation of UI and Code behind
Life Cycle
7874391191 www.shyamsir.com
6. Good For
It’s good for small scale applications with limited
team size.
Less knowledge HTML, CSS , JavaScript.
ASP.NET WebForms is Rapid Application
Development approach.
7874391191 www.shyamsir.com
7. Today’s IT Company
We are professional software developer and we build complex, large scale
websites with a team of developers
7874391191 www.shyamsir.com
8. MVC
Model View Controller
Model–view–controller (MVC) is a software
pattern for implementing user interfaces.
7874391191 www.shyamsir.com
10. MVC
Model
Implement the logic of the application
Classes that represent the data of the application
and that use validation logic to enforce business
rules for that data.
Notifies its associated views and controllers when
there has been a change in its state.
This notification allows the views to produce updated
output, and the controllers to change the available
set of commands.
7874391191 www.shyamsir.com
11. MVC
Views
Display data and present the UI
Template files that your application uses to
dynamically generate HTML responses.
Requests information from the model that it needs
for generating an output representation to the user
7874391191 www.shyamsir.com
12. MVC
Controllers
Handle user interactions, work with models and
select next view to display
A controller can send commands to the model to
update the model's state.
It can also send commands to its associated view to
change the view's presentation of the model
7874391191 www.shyamsir.com
13. Types of Project Template
Empty: -
The Empty template created the minimum
references and resources required.
Basic: -
In MVC 4 and. Basic project is much closer
structurally to Empty project.
It includes Content and Scripts as well as few more
references
7874391191 www.shyamsir.com
14. Types of Project Template
Internet Application :-
Adds two controllers( Account controller and Home
controller) to the Basic template with implemented
actions and views.
Its a template used usually to start a normal web
project in action.
7874391191 www.shyamsir.com
15. Types of Project Template
Intranet Application :-
It’s the Internet Application except for Membership
management.
Windows authentication method.
Mobile Application :-
Mobile website programming is Template has
everything that Internet Application template has,
however it is using jQuery.mobile instead.
Forms Authentication
7874391191 www.shyamsir.com
16. Types of Project Template
Web API Application :-
It allows you to expose your data and service to the
web directly over Http.
This template includes everything from Basic
Template expect Account controller and membership
functionality.
7874391191 www.shyamsir.com
17. View Engine
The view engine is responsible for creating HTML from
your views.
Like ASP.NET .aspx <% %>
Views are usually some kind of mix-up of HTML and a
programming language.
Razor
ASPX
Spark
NHaml
NDjango
Brail
Hasic
7874391191 www.shyamsir.com
18. Razor - View Engine
MVC 3.
It’s not a programming language but uses C# syntax
for embedding code in a page without the ASP.NET
delimiters: <%= %>.
Razor using an @
Cshtml , vbhtml
7874391191 www.shyamsir.com
19. Razor – Syntax Rule
Razor code blocks are enclosed in @{ ... }
Inline expressions (variables and functions) start with
@
Code statements end with semicolon
Variables are declared with the var keyword
Strings are enclosed with quotation marks
7874391191 www.shyamsir.com