Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Standard view
Full view
of .
Look up keyword or section
Like this

Table Of Contents

1. File -> New Project
2. Controllers
Adding a HomeController
Running the Application
Adding a StoreController
3. Views and Models
Adding a View template
Using a Layout for common site elements
Updating the StyleSheet
Using a Model to pass information to our View
Adding Links between pages
4. Data Access
Adding a Database
Connecting to the database using Entity Framework Code-First
Use NuGet to install EFCodeFirst
Creating a Connection String in the web.config file
Adding a Context Class
Updating our Model Classes
Querying the Database
Store Index using a LINQ Query Expression
Store Browse, Details, and Index using a LINQ Extension Method
5. Edit Forms and Templating
Adding the Artist class
Customizing the Store Manager Index
Scaffold View templates
Using a custom HTML Helper to truncate text
Creating the Edit View
Implementing the Edit Action Methods
Writing the HTTP-GET Edit Controller Action
Using an Editor Template
Creating a Shared Album Editor Template
Passing additional information to Views using ViewBag
Implementing Dropdowns on the Album Editor Template
Implementing the HTTP-POST Edit Action Method
Implementing the HTTP-GET Create Action Method
Handling Deletion
6. Using Data Annotations for Model Validation
Adding Validation to our Album Forms
Testing the Client-Side Validation
7. Membership and Authorization
Adding the AccountController and Views
Adding an Administrative User with the ASP.NET Configuration site
Role-based Authorization
8. Shopping Cart with Ajax Updates
Adding the Cart, Order, and OrderDetails model classes
Managing the Shopping Cart business logic
The Shopping Cart Controller
Ajax Updates using Ajax.ActionLink
9. Registration and Checkout
Migrating the Shopping Cart
Creating the CheckoutController
Adding the AddressAndPayment view
Defining validation rules for the Order
Adding the Checkout Complete view
Updating The Error view
10. Final updates to Navigation and Site Design
Creating the Shopping Cart Summary Partial View
Creating the Genre Menu Partial View
Updating Site Layout to display our Partial Views
Update to the Store Browse page
Updating the Home Page to show Top Selling Albums
0 of .
Results for:
No results containing your search query
P. 1
MVC Music Store - Tutorial - V2.0

MVC Music Store - Tutorial - V2.0

|Views: 13|Likes:
Published by kingshuk_paul

More info:

Published by: kingshuk_paul on Jun 04, 2011
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less





You're Reading a Free Preview
Pages 4 to 26 are not shown in this preview.
You're Reading a Free Preview
Pages 30 to 33 are not shown in this preview.
You're Reading a Free Preview
Pages 37 to 76 are not shown in this preview.
You're Reading a Free Preview
Pages 80 to 147 are not shown in this preview.

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->