Livro asp.net mvc4

Disponível somente no TrabalhosFeitos
  • Páginas : 39 (9590 palavras )
  • Download(s) : 0
  • Publicado : 15 de janeiro de 2013
Ler documento completo
Amostra do texto
Intr to ASP ro o P.NET MV 4 w T VC with Visu Studio (Be ual S o eta)
Rick A Anderso and S on Scott Ha anselma an

orial will teach you the basics of building an ASP.NET M e n MVC Web Summary: This tuto M isual Studio 11 Express Beta for W o s Web, which is a free application using Microsoft Vi of ft udio. version o Microsof Visual Stu Categor Step-By-Step ry: Applies to: ASP.NE MVC 4Beta, Visual Studio 11 B ET Beta Source: ASP.NET site (link to s source cont tent) E-book publicatio date: Ma 2012 on ay 115 pages             

 

 

 

   
Copyright © 2012 by Microsoft Corporation

 

 

All rights reserved. No part of the contents of this book may be reproduced or transmitted in any form or by any means without the written permission of the publisher.Microsoft and the trademarks listed at http://www.microsoft.com/about/legal/en/us/IntellectualProperty/Trademarks/EN-US.aspx are trademarks of the Microsoft group of companies. All other marks are property of their respective owners. The example companies, organizations, products, domain names, email addresses, logos, people, places, and events depicted herein are fictitious. Noassociation with any real company, organization, product, domain name, email address, logo, person, place, or event is intended or should be inferred. This book expresses the author’s views and opinions. The information contained in this book is provided without any express, statutory, or implied warranties. Neither the authors, Microsoft Corporation, nor its resellers, or distributors will beheld liable for any damages caused or alleged to be caused either directly or indirectly by this book.

   

 

 

Contents
Getting Started ........................................................................................................................................ 3 What You'll Build........................................................................................................................... 3 Skills You'll Learn ........................................................................................................................... 5 Getting Started .............................................................................................................................. 6 Creating Your First Application.................................................................................................... 7 Adding a Controller ............................................................................................................................ 13 Adding a View ..................................................................................................................................... 20 Changing Views andLayout Pages ............................................................................................ 25 Passing Data from the Controller to the View........................................................................... 31 Adding a Model .................................................................................................................................. 37 Adding ModelClasses................................................................................................................. 37 Creating a Connection String and Working with SQL Server LocalDB .................................... 41 Accessing Your Model's Data from a Controller ............................................................................... 43 Creating a Movie......................................................................................................................... 46 Examining the Generated Code.................................................................................................. 48 Strongly Typed Models and the @model Keyword .................................................................. 49 Working with SQL Server LocalDB...
tracking img