ASP .NET MVC Fundamentals Tutorial Videos for Beginner - PowerPoint PPT Presentation

About This Presentation
Title:

ASP .NET MVC Fundamentals Tutorial Videos for Beginner

Description:

ASP.NET fundamentals Tutorial helps you to learn ASP .NET starting from introduction to the advanced fundamental concepts.You can master all the concepts trough our free tutorials. – PowerPoint PPT presentation

Number of Views:92

less

Transcript and Presenter's Notes

Title: ASP .NET MVC Fundamentals Tutorial Videos for Beginner


1
ASP .NET MVC Fundamentals Tutorial Videos for
Beginner by
2
Highlights
  • The MVC mindset
  • Controllers
  • Actions Methods
  • ASP.NET routing
  • Action result types
  • Action selectors and Action filters

3
ASP .NET MVC Mindset
  • MVC stands for Model View Controller.
  • It is a development model used by ASP.NET. 
  • Allows  developing complex applications.
  • ASP.NET MVC gives effective patterns to build
    dynamic websites.
  •  MVC includes features that facilitate rapid,
    test-driven development.
  • Provides an useful way to Organize code, markup,
    and control flow.

4
Controllers
  •  MVC framework maps URLs to classes are referred
    as Controllers
  • Controllers process incoming requests, handle
    user input and interactions, and execute
    appropriate application logic.
  • ControllerBase is the base class for all
    controllers.
  • Controller class inherits from ControllerBase,
    responsible for Locating the appropriate action
    method, getting action method's arguments values
    and Handling errors.

5
Action Methods
  • Responsible to execute user requests and generate
    response to it.
  • Controller defines action methods. Controllers
    can include as many action methods as needed.
  • Action methods on usually have a one-to-one
    mapping with user interactions.
  • When a user enters a URL into the browser,
    controller determines the appropriate action
    method to handle the request. 

6
ASP.NET routing
  • Mapping of web requests to controller actions is
    known as routing.
  • ASP .NET routing engine relies on URL patterns to
    decide which controller action has to handle
    given request.
  • Routing is fully integrated and much powerful
    which helps a lot in Search Engine Optimization.
  • ASP.NET routing enables users to use URLs that do
    not have to map to specific files in a Web site,
    can use URLs that are descriptive of the user's
    action

7
Action result types
  • Action result is a return type of a controller
    method, also called as action method.
  • serves as the base class for Result classes.
  • Action methods return models to views, file
    streams, redirect to other controllers.
  • There are many derived Action Result types you
    can use to return results.

8
Action result types
  • ContentResult Returns a user-defined content
    type.
  • JsonResult Returns a serialized JSON object.
  • EmptyResult Represents a return value that is
    used if the action method must return
    a null result .
  • ViewResult Renders a view as a Web page.
  • FileResult Returns binary output to write to the
    response.
  • RedirectResult Redirects to another action method
    by using its URL.

9
Action selectors and Action Filters
  • Action selectors are attributes that can be
    applied to action methods to invoke in response
    to a request.
  • Action filter is an attribute that you can apply
    to a controller action or an entire controller
    that modifies the way in which the action is
    executed. In ASP.NET MVC there are several
    filters, they are
  • Output Cache This action filter caches the
    output of a controller action for a specified
    amount of time.
  • Handle Error This action filter handles errors
    raised when a controller action executes.
  • Authorize This action filter enables you to
    restrict access to a particular user or role.

10
Feedback
Like It ? Hate It?
We would love to hear from you whatever you think
about the course.
Click HERE to share what you think!
11
Thank you
Thank You for Watching ASP .NET MVC Fundamental
Tutorial Videos for Beginner by
http//www.courseing.com
Write a Comment
User Comments (0)
About PowerShow.com