01 introduction

29
ThS. Nguyễn Nghiệm 0913.745.789 [email protected] [email protected]

Upload: leltt

Post on 13-Sep-2015

217 views

Category:

Documents


0 download

TRANSCRIPT

  • ThS. Nguyn Nghim0913.745.789

    [email protected]

    [email protected]

  • MVC PatternModelControllerView

    MVC Framework Java: Struts, JSF, SpringPHP: ZendASP.NET MVC

  • Lp trnh n gin vi C#, VB.NET

    ng dng to ra chy n nh trn Windows

    D qun l nng cp

    p ng nhiu loi thit b truy cp

    An ton

    D tch hp

  • Controller

    Nhn yu cu t user

    X l v xy dng model ph hp

    Chuyn Model cho View

    View

    Tip nhn Model t Controller sinh giao din phhp

    Model

    Cha d liu chia s chung gia Controller v View

  • MVC: Tch bchcc phn vic trong x l yu cu.

    St vi giao thc web: Khng hng s kin nh ASP.NET.

    Khng duy tr thng tin trng thi nh ASP.NET.

    T ng nhn din thit b: T la chn view ph hp.

    Razor: sinh giao din.

    Kiu d liu ng: ViewBag/DataView

    Ci thin Ajax: Jquery + Helper Ajax.

    Kim li: lp trnh 1 ln p dng cho c 2 client v server.

    Web API: th vin web dng cho nhiu loi thit b

    Action Filter: kim sot cc Action.

    D test: d dng test cc Action ca cc Controller

    NuGet: qun l cc gi m rng.

  • TQS

    C th vi dn mu

    TDTT

    Tng cngv o sukin thc

    VDTT

    Vn dng hon thin, ng dng

    MVC 5

    Project

    Chuyn suHon thin

  • T chc website

    Trnh by hng ha

    Gi hng in t

    Qun l thnh vin

    t hng

    Tin ch web

    Qun tr website

    Ci t v trin khai

    Hot ng ca MVC5

    HTML, CSS, Bootstrap

    C#: Cc im mi

    Controller, Model, View

    Chia s d liu

    Validation

    Razor & Helper

    Database

    Entity Framework

    Linq

    Ajax

    Security

  • ThS. Nguyn Nghim0913.745.789

    [email protected]

    [email protected]

  • Individual User Accounts: D n c to ra l loid n Internet bao gm c phn security

    No Authentication: D n c to ra l d nInternet khng bao gm phn security.

    Windows Authentication: D n c to ra l loid n Intranet bao gm c phn security nhng tikhon c qun l trn mng ni b.

    Organizational Accounts: D n c to ra l loid n s dng ti khon t cloud computing.

    Ngoi ra: bn c th chn Web API b sung khnng h tr xy dng th vin web

  • Controllers

    Th mc ny cha tt c cc Controller trong ngdng. Cc Controller p ng yu cu n t trnhduyt, quyt nh phi lm g v phn hi kt qu.

    Models

    Cc lp m hnh d liu c t chc nm gi vthao tc d liu

    Views

    View cha cc mu giao din ngi dng ca ngdng

  • App_DataCha cc file d c s liu (nu c)

    App_StartCha lp c chy mt ln khi ng dng bt u.

    ContentCha ti nguyn tnh nh hnh nh, CSS

    ScriptsCha JavaScript cn thit ca ng dng

    Global.asaxTp tin s kin cha cc iu khin s kin nhm kim

    sot vng i ca Request, Session, Application

    Web.configTp tin xml cha thng tin cu hnh ca ng dng web

  • Ch : return Content(.)

  • Ch :return View()

  • Truyn d liu t Controller sang View n gin

  • http://localhost:49324/Product/Hello World/http://localhost:49324/Product/Hello/Worldhttp://localhost:49324/Product