Aspmvc

18

Click here to load reader

Transcript of Aspmvc

Page 1: Aspmvc

-presented by N.DuraiArasan

Cms & Cts co.

Page 2: Aspmvc

Internet is the fastest growing technology, Has changed the way business is conducted.

Helps organizations to reach a larger range of people, irrespective of their geographical locations.

Helps organizations in sharing and accessing information from anywhere, anytime.

Has changed the focus of application development from desktop applications toWeb applications.

Page 3: Aspmvc

Are programs that are executed on a Web

server and accessed from a Web

browser.

Enable organizations to share and access

information on the Internet and corporate

intranets.

Can support online commercial transactions,

popularly known as e-commerce

Page 4: Aspmvc

Presentation layer : Controls the flow of execution and communication between thepresentation layer and the data layer.

Business logic layer: Exposes the application data stored in Data layer databases to the business logic layer.

Data access layer: Exposes the application data stored in Data layer databases to the business logic layer.

Page 5: Aspmvc

Single-tier architecture

Presentation | Business Logic | Data access

Two-tier architecture

Fat client + Thin Server

Fat Server+ Thin Client

Three-tier architecture

Presentation +Business Logic +Data access

N-tier architecture

Presentation +Business Logic +Data access+Additional Feautures

Page 6: Aspmvc

HTML PAGE

ASPMVC

ASP.NET

Page 7: Aspmvc

The MVC development platform separates into three separate components:

The modelThe viewThe controller

The model:Manages the application data.Encapsulates data stored in a database as well as code used to manipulate thedata.

The view :

It manages the display of information.

The controller:Manages the flow of application.Handles user input.Provides data to the relevant view.

Page 8: Aspmvc
Page 9: Aspmvc

A controller:Is a C# class inherited from .NET Framework’s built-in Controller class.

Contains an application logic in the form of various public methods called actionmethods. The class is .cs

public class HomeController : Controller{//Some code

Public index ActionIndex(){}}

Page 10: Aspmvc

A view is a combination of HTML markup and

code

that runs on the Web server.

It render from the controller class action

method index()

Index.cshtml

<html>

</html>

Page 11: Aspmvc

Consists of a set ofclasses, where the objectsof the classes representthe data associated withthe application.

public class Product{public long Id {get; set;}public string name {get; set;}public string description {get; set;}public int price {get; set;}}

sql server,oracle,ms-access ..etc

Page 12: Aspmvc

Routing

The ASP.NET Routing module is responsible for mapping incoming browser requests to particular MVC controller actions.

Scaffolding

Allows you to create auto-generatedcontrollers and their corresponding views.

Convention-over-Configuration

Basic configuraion info

Bundling and Minification

Deployment final project into software process

Page 13: Aspmvc

It generated Autogenerated controller classes and Views.

To place auto-generated codes

for the application to work.

Page 14: Aspmvc

VALIDATION AND VERIFICATION CONTROLS

Like Registration form and Admisson forms.

Page 15: Aspmvc

Helps in finding, traversing, and manipulating HTML elements inside an HTMLdocument.

Helps you to animate HTML elements, handle events, and make your applicationsrich and interactive.

CONTROLS LIKE

Autocomplete

Datepicker

Accordion

Can be included by using the following syntax:<script type= "text/javascript"src="@Url.Content("~/Scripts/jquery-1.7.1.js")"></script>

Page 16: Aspmvc

A technology called Asynchronous JavaScript

and XML (AJAX) can be implemented

Makes the interaction between the client and

the server asynchronous.

Allows the users to interact with the Web

application while waiting for a response

from the server.

Enables partial updates in Web applications.

Page 17: Aspmvc

Authorization

It is a mechanism that determines the rightsgiven to the users for accessing the available resources

Authentication

Authentication is the process of identifying an individual, usually based on the username and password provided by the user.

Forms Authentication

Windows Authentication

OpenID/Oauth Authentication

Page 18: Aspmvc