Mvc 4

199 views

Published on

Published in: Software, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
199
On SlideShare
0
From Embeds
0
Number of Embeds
7
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Mvc 4

  1. 1. - Biren Modi
  2. 2.  MVC Framework  MVC Project Templates
  3. 3. Previous Version In MVC 4.0 public class Products : AsyncController { public void IndexAsync() { WebClient wc1 = new WebClient(); AsyncManager.OutstandingOperations .Increment(); wc1.DownloadStringCompleted += (sender, e) => { AsyncManager.Parameters[“resul t"] = e.Result; AsyncManager.OutstandingOperat ions.Decrement(); }; wc1.DownloadStringAsync(new Uri("http://www.bing.com/")); } public ActionResult IndexCompleted(string result) { return View(); } } public class Products : Controller { public async Task<ActionResult> IndexAsync() { WebClient web = new WebClient(); string result = await web.DownloadStringAsync("www.bing.com/"); return View(); } }
  4. 4. public static void RegisterBundles(BundleCollection bundles) { BundleTable.EnableOptimizations = true; bundles.Add(new ScriptBundle("~/bundles/jquery").Include( "~/Scripts/jquery-{version}.js")); bundles.Add(new StyleBundle ("~/Content/css").Include("~/Content/site.css")); bundles.Add(new StyleBundle("~/Content/themes/base/css").Include( "~/Content/themes/base/jquery.ui.core.css", "~/Content/themes/base/jquery.ui.theme.css")); }
  5. 5.  Enabling Logins from Facebook and Other Sites Using OAuth and OpenID  App_Start folder and separate classes ◦ Routing ◦ Bundling ◦ Filters ◦ etc..  Display Modes ◦ Desktop ◦ Mobile  Azure SDK  Database Migrations
  6. 6.  ASP.NET Web API  Mobile Project Template  Enhancements to Default Project Templates  Empty Project Template

×