Tuesday, July 30, 2013

: One to many relationship and ObjectStateManager error

Understand basic navigation with Entity Framework Code First (4.3) with 1 to many relationship


Entity Framework 4.3: An object with the same key already exists in the ObjectStateManager
http://patrickdesjardins.com/blog/entity-framework-4-3-an-object-with-the-same-key-already-exists-in-the-objectstatemanager

Microsoft Links : MVC 3, MVC 4 tutorials

Table of Contents

MVC 4

·         ASP.NET MVC 4 Mobile Features
·         Bundling and Minification
·         Custom MVC Template

MVC Music Store

·         Part 2: Controllers
·         Part 3: Views and ViewModels
·         Part 4: Models and Data Access

Getting Started with EF using MVC

·         ASP.NET Data Access Content Map

Views

·         Dynamic v. Strongly Typed Views

Controllers and Routing

·         Creating Custom Routes (C#)
·         Creating Custom Routes (VB)

Security

JavaScript

Deployment

Getting Started with ASP.NET MVC3

Older Versions

·         Getting Started With MVC
·         Models (Data)
·         ASP.NET MVC Views
·         Controllers and Routing
·         Deployment
·         Security
·         Unit Testing
·         Contact Manager
·         NerdDinner
·         Movie Database
·         JavaScript
·         Overview

Hands On Labs

·         What's New in ASP.NET MVC 4
·         ASP.NET MVC 4 Fundamentals

MVC 5

·         Introduction to ASP.NET MVC 5


Monday, July 22, 2013

Some More MVC links

1. Difference between MVC and ASP :

http://msdn.microsoft.com/en-us/library/dd381412(v=vs.98).aspx




2. Razor Syntax

MS Article : Introduction to ASP.NET Web Programming Using the Razor Syntax (C#)

http://www.asp.net/web-pages/tutorials/basics/2-introduction-to-asp-net-web-programming-using-the-razor-syntax


C# Razor Syntax Quick Reference



3. Shivaprasad MVC tutorials :

http://www.dotnetfunda.com/articles/article1846-mvc-tutorial-number-12-what-is-razor-in-mvc-3.aspx


4. A good basic tutorial and contains many links :

ASP.NET MVC3 Razor With jQuery For Beginners




5.httpnotfound

ASP.NET MVC 3: Using HttpNotFoundResult action result

http://weblogs.asp.net/gunnarpeipman/archive/2010/07/27/asp-net-mvc-3-using-httpnotfoundresult-action-result.aspx



6. Types of helpers in MVC :

form, url and html.



===========================
action is any public method in a controller.

If a public method in a controller is not supposed to work as action, it should be decorated with [NonAction] attribute.


Base to all action results is ActionResult

Types of ActionResult :
ViewResult
PartialViewResult
RedirectResult
RedirectToRouteResult
ContentResult
JsonResult
JavaScriptResult
FileResult
EmptyResult



========================
what is @Scripts.Render ?

what is RenderSection ?what is @RenderBody ?
what are <section> , <nav> tags ?

========================



 using Microsoft.AspNetCore.Mvc; using System.Xml.Linq; using System.Xml.XPath; //<table class="common-table medium js-table js-stre...