Anda di halaman 1dari 18

INTRODUCTION TO ASP.

NET
MVC
BY:Manal Fatima Khan
B.TECH [C.S.E] 4thth YEAR
1301010006

CONTENTS

NIIT
Courses offered by NIIT
Services offered by NIIT
Introduction to .NET using MVC
Introduction to the MVC Framework Architecture
Features of ASP.NET MVC
Structure of ASP.NET MVC project

Courses Offered by NIIT

ASP.NET with C#
Java
PHP
C/C++
Web Designing
Android

Services Offered By NIIT

Summer Training Program


Project Based Industrial Training
Winter Training Program
Online Learning Program
Cloud Services

NIIT
NIIT,Asias Largest IT Trainer, pioneered IT education
and training in India ,more than two decades ago.
Founded in 1981,with the mission of Bringing People
and Computers Together Successfully, NIIT services
enterprises and individuals in 42 countries. NIIT
INDIA Community is all about NIIT &People who are
associated with this big brand name.
No Matter how u r associated with NIIT,
No Matter whether u works with NIIT or u r NIITian
Student.

Introduction to ASP.NET using MVC


ASP.NET supports three major development models:
Web Pages, Web Forms and MVC (Model View
Controller). The ASP.NET MVC framework is a
lightweight, highly testable presentation framework
that is integrated with existing ASP.NET features, such
as master pages, authentication, etc. Within .NET, this
framework is defined in the System.Web.Mvc
assembly.

Cont....

Introduction to the MVC Framework


Architecture

Features of ASP.NET MVC

Ideal for developing complex but light weight applications

It

provides an extensible and pluggable framework which can be


easily replaced and customized. For example, if you do not wish to
use the in-built Razor or ASPX View Engine, then you can use any
other third-party view engines or even customize the existing ones.

Utilizes

the component-based design of the application by logically


dividing it into Model, View and Controller components. This
enables the developers to manage the complexity of large-scale
projects and work on individual components.

It does not use the concept of View State .This helps in building
application that are light weight

MVC First Application

Conti...

Conti...

Conti...

Conti...

Example of MVC Application


Home Controller:using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace LibraryInfosystem.Controllers
{
public class HomeController : Controller
{
//
// GET: /Home/
public ActionResult Index()
{
return View();
}
public ActionResult ABOUTUS()
{
return View();
}

Conti...
public ActionResult AdminLogin()
{
return View();
}
public ActionResult MemberLogin()
{
return View();
}
}
}

View
About Us:<html>
<head>
<style>
#main
{
background:#f2d13e;
}

Conti...
#leftcontainer
{
width:40%;
float:left;
}
#leftcontainer img
{
margin-left:100px;
}
#rightcontainer
{
width:60%;
float:left;
}
#menu
{
list-style-type : none;

Anda mungkin juga menyukai