ASP and MVC - PowerPoint PPT Presentation

About This Presentation
Title:

ASP and MVC

Description:

A number of organizations are still widely utilizing ASP these days! Reason – Commonly, the case is an organization is headed with enormous ASP framework in the center and a couple of engineers who know the framework from its adolescence. – PowerPoint PPT presentation

Number of Views:40

less

Transcript and Presenter's Notes

Title: ASP and MVC


1
  • ASP and MVC

Dot Net Training
2
ASP and MVC
  • Introduction -
  • A number of organizations are still widely
    utilizing ASP these days! Reason Commonly, the
    case is an organization is headed with enormous
    ASP framework in the center and a couple of
    engineers who know the framework from its
    adolescence. Typically, the framework is
    excessively unpredictable, with the complicated
    format of code inside (in view of a nature of
    ASP). Truth be told, there is a next to zero
    courses for new developers to be required in
    backing or advancement of the code. The reason is
    that the limit for new developers is too high -
  • market urges developers to learn new stuff and
    overlook old ones.
  • An enormous spaghetti-like code tries to ponder
    the code unimportant.

Dot Net Training
3
ASP and MVC
  • These ASP frameworks exist since they work.
    Existing developers might need to change
    something, however, the limit for them is high as
    well
  • High workload with existing application support
  • Need to concentrate new languages (like VB.NET or
    C) and innovations (like MVC)
  • What is less demanding for ASP developer to
    compose another code with CMVC or proceed with
    ASP?
  • Microsoft has dropped the backing of ASP and
    there are a tad bit of advancements these days.
    Some utilize JavaScript, some utilize jQuery, XML
    however, that is it. There is next to none of the
    developments for the server-side that may make
    the life of software engineers less demanding.

Dot Net Training
4
ASP and MVC
  • Router -
  • In the center of MVC, there is a Router. The
    Router chooses the Controller and Action for the
    most of the part.
  • Router is a code that chooses which Controller
    and Action to call.
  • Think about the Router with correlation MVC and
    exemplary scripting.
  • The IIS inward process finds the organizer and
    document and executes it.
  • Tests of URLs (controllers are highlighted)
  • Http//localhost/Home/Index
  • Http//localhost/Home/About
  • Http//localhost/User/Edit/1

Dot Net Training
5
ASP and MVC
  • Controller-
  • Controller is a class. It holds each and every
    part of clients association for the most of the
    part in regards to ONE kind of business element.
    There ought to be various controllers in the
    Application. Controllers must have names
    finishing with Controller HomeController,
    PublicationController, StatusController,
    UserController. Controller ought to have a client
    interface code or HTML markup.
  • It is a decent practice to dodge the SQL in the
    controller as well. Controller ought to handle
    the client data, question and upgrade the article
    show and set up the data to be shown. All
    Controllers ought to dwell in the
    organizer/Controllers.
  • Controller handles the client data , do the
    things and controls what will be shown (yet not
    how).
  • Controller ought to have techniques that make the
    rationale out of Controller

Dot Net Training
6
ASP and MVC
  • Actions
  • Action executes the business rationale. There
    might be a business rationale of any sort in the
    controller. You may inquire or upgrade the
    database, send messages, process records or
    client entries, or even dispatch a rocket to
    Mars.
  • Commonly there is a rationale to
    overhaul/embed/erase/list records from/to
    database, yet it might be truly anything there.
    There ought to be NO HTML markup in the
    Controller.
  • Towards the end of Action, on the off chance that
    you need to show something (other than the static
    substance of View) you have to instate the
    variable Model and incorporate the View as the
    last line of the Action.
  • If the client hits the connection
    http//localhost/test_mvc/?controllerUseraction
    List , Router chooses the UserController and List
    action. The List action readies the rundown of
    Users and allocates this rundown to the variable
    Model.

Dot Net Training
7
ASP and MVC
  • Views
  • The view gives the appearance. It is just that
    the Views ought to have an HTML markup inside
    them. There ought to be NO or supreme least of
    the rationale in a View. The matter of a View is
    to take the Model and show it to the client in an
    ideal way.
  • Outline your Views independently from your code.
    Convey, what needs to be. Change the appearance
    as simple as 1-2-3. Have a full screen or
    versatile perspective (or both) without the
    necessity to touch the business rationale code.
    Focus on the business rationale and data when you
    work with Controller/Action. Scale your framework
    up to handfuls Controllers and many Views.
    Appreciate the straightforwardness and simple
    code route. Dispose of complicate-format code
    until the end of time

Dot Net Training
8
ASP and MVC
  • Data
  • Data for ASP tasks is normally kept away in the
    database. As an ASP software engineer, you likely
    have a few data access utilities and blend them
    with SQL and HTML in your ASP pages.
  • They utilize a term Model to allude the data in
    MVC projects.
  • At the point when the data is required from the
    database, one column is gotten from table into
    the item
  • The object of the comparing class is made
  • Data is brought from the database and allocated
    to each trait of the article
  • The prepared article is passed to the business
    rationale.

Dot Net Training
9
ASP and MVC
  • Masterpage
  • In the huge ASP, there is a include order which
    is utilized to make headers, footers that will be
    reused on different pages.
  • There is an idea of master pages in the .NET .
    The master page gives a strong perspective no
    header and footer records, only one page, outline
    and see what you get a solitary purpose of
    customer asset consideration CSS, JavaScripts,
    and so forth.
  • For .NET training and placement reviews, please
    do visit CRB Tech Reviews.
  • Related Articles
  • FOR MVC DEVELOPERS THE FEATURES OF ASP.NET CORE
  • An Overview of Microsoft MVC Dot Net

Dot Net Training
10
Thank You..!
Dot Net Training
Write a Comment
User Comments (0)
About PowerShow.com