SlideShare a Scribd company logo
Building an End-to-End
HTML5 App with ASP.NET MVC 4,
   Entity Framework and jQuery

                        Dan Wahlin
Building the an End-to-End ASP.NET MVC 4, Entity Framework, HTML5, jQuery application
This presentation is based on an
online training course available at
    http://www.pluralsight.com
Building the an End-to-End ASP.NET MVC 4, Entity Framework, HTML5, jQuery application







Building the an End-to-End ASP.NET MVC 4, Entity Framework, HTML5, jQuery application
Building the an End-to-End ASP.NET MVC 4, Entity Framework, HTML5, jQuery application




Building the an End-to-End ASP.NET MVC 4, Entity Framework, HTML5, jQuery application







Server-side
    and
Client-side
Data
Model Classes   Repository
                 Classes











    




    
Building the an End-to-End ASP.NET MVC 4, Entity Framework, HTML5, jQuery application


public class Stock   : Security
{
    public decimal   DayHigh { get; set; }
    public decimal   DayLow { get; set; }
    public decimal   Dividend { get; set; }
    public decimal   Open { get; set; }
    public decimal   Volume { get; set; }
    //Code removed   for brevity
}



public class SecurityRepository :
  RepositoryBase<AccountAtAGlance>, ISecurityRepository
{
   public Security GetSecurity(string symbol) {...}
   public List<TickerQuote> GetSecurityTickerQuotes() {...}
   public OperationStatus UpdateSecurities() {...}
   public OperationStatus InsertSecurityData() {...}
}
public class AccountRepository :
  RepositoryBase<AccountAtAGlance>, IAccountRepository
{
     public Customer GetCustomer(string custId)
     {
          using (var context = DataContext)
          {
               return context.Customers
                      .Include("BrokerageAccounts")
                      .Where(c => c.CustomerCode ==
                                  custId).SingleOrDefault();
          }
     }
}












HTML (Razor)                   JSON

 ASP.NET MVC                ASP.NET Web API




                            Entity Framework



               SQL Server
public class DataServiceController : ApiController
{
    [HttpGet]
    public BrokerageAccount Account(string acctNumber) { }
    [HttpGet]
    public Security Quote(string symbol) { }
    [HttpGet]
    public MarketQuotes MarketIndices() { }
    [HttpGet]
    public MarketsAndNews TickerQuotes() { }
}







Building the an End-to-End ASP.NET MVC 4, Entity Framework, HTML5, jQuery application
Building the an End-to-End ASP.NET MVC 4, Entity Framework, HTML5, jQuery application





<script id="AccountDetailsTemplate_Small"
   type="text/x-handlebars-template">
     <div class="content">
        <header>
            <span>ACCOUNT TOTAL</span>
        </header>
        <section>
            <span class="Currency Positive"
                 style="font-size: 20pt">{{Total}}</span>
        </section>
    </div>
</script>
tmpl = function (tileName, data) {
    var templateHtml = $('#' + tileName).html();
    if (data != null) {
        var compiledTemplate =
           Handlebars.compile(templateHtml);
        return compiledTemplate(data);
    }
    else {
        return templateHtml;
    }
}











    

    

    

    

    



$.plot(canvasDiv, [{
       color: color,
       shadowSize: 4,
       label: 'Simulated Data',
       data: quoteData
   }], chartOptions);




raphael('AccountPositionsSVG', 500, 420)
  .pieChart(scene.width / 2,
            scene.height / 4 + 10,
            66, values, labels, "#fff");







<video id="VideoPlayer" controls preload="auto"
       poster="/content/images/video-poster.jpg">
    <source type="video/mp4"
      src="http://.../markets_320k.mp4" />
</video>



<video id="video" height="323" width="600"
    controls poster="Images/poster.jpg">
    <source src="Video/test.webm" />
    <source src="Video/test.ogv" />
    <source src="Video/test.mp4" />
 </video>









    




    
More Information:


http://tinyurl.com/AAGApp2012
Building the an End-to-End ASP.NET MVC 4, Entity Framework, HTML5, jQuery application

More Related Content

PPTX
JavaScript Patterns to Cleanup your Code
PDF
AngularJS Framework
PPTX
AngularJs
PDF
Human Talks - StencilJS
DOCX
E script-Examples
PDF
React 101
PDF
Databinding and Performance-Tuning in Angular 2
PPTX
AngularJS Internal
JavaScript Patterns to Cleanup your Code
AngularJS Framework
AngularJs
Human Talks - StencilJS
E script-Examples
React 101
Databinding and Performance-Tuning in Angular 2
AngularJS Internal

What's hot (20)

PPT
Google Web Toolkit
PPTX
Angular 2 Architecture (Bucharest 26/10/2016)
PPTX
Angular 2.0 forms
PDF
AngularJS Basics with Example
PPTX
Modules and injector
PPTX
Http Communication in Angular 2.0
PPTX
Upgrading from Angular 1.x to Angular 2.x
PPTX
Performance Optimization In Angular 2
PPT
Backbone.js
PPTX
SUGCon 2014 Sitecore MVC
PPTX
AngularJs $provide API internals & circular dependency problem.
PDF
jQuery - Chapter 4 - DOM Handling
PPTX
Routing And Navigation
PDF
Ngrx meta reducers
PDF
Testowanie JavaScript
PDF
jQuery - Chapter 5 - Ajax
PDF
Angular js - the beginning
PPTX
From zero to hero with the reactive extensions for JavaScript
PPTX
Slaven tomac unit testing in angular js
Google Web Toolkit
Angular 2 Architecture (Bucharest 26/10/2016)
Angular 2.0 forms
AngularJS Basics with Example
Modules and injector
Http Communication in Angular 2.0
Upgrading from Angular 1.x to Angular 2.x
Performance Optimization In Angular 2
Backbone.js
SUGCon 2014 Sitecore MVC
AngularJs $provide API internals & circular dependency problem.
jQuery - Chapter 4 - DOM Handling
Routing And Navigation
Ngrx meta reducers
Testowanie JavaScript
jQuery - Chapter 5 - Ajax
Angular js - the beginning
From zero to hero with the reactive extensions for JavaScript
Slaven tomac unit testing in angular js
Ad

Viewers also liked (15)

PPTX
AngularJS in 60ish Minutes
PPTX
Building AngularJS Custom Directives
PPTX
What's new in asp.net mvc 4
PPT
Using jQuery Templates
PPTX
Integrating Security Roles into Microsoft Silverlight Applications
PPTX
Development Trends - What's New in the World of Web Development
PPTX
Basics of angular directive (Part - 1)
PDF
AngularJS Custom Directives
PDF
Custom AngularJS Directives
PPTX
Building an End-to-End AngularJS Application
PPTX
AngularJS custom directive
PDF
Building Custom AngularJS Directives - A Step-by-Step Guide - Dan Wahlin | Fa...
PPTX
Getting Started with ASP.NET MVC 3 and Razor
PPT
ASP .net MVC
PPTX
Getting Started Building Windows 8 HTML/JavaScript Metro Apps
AngularJS in 60ish Minutes
Building AngularJS Custom Directives
What's new in asp.net mvc 4
Using jQuery Templates
Integrating Security Roles into Microsoft Silverlight Applications
Development Trends - What's New in the World of Web Development
Basics of angular directive (Part - 1)
AngularJS Custom Directives
Custom AngularJS Directives
Building an End-to-End AngularJS Application
AngularJS custom directive
Building Custom AngularJS Directives - A Step-by-Step Guide - Dan Wahlin | Fa...
Getting Started with ASP.NET MVC 3 and Razor
ASP .net MVC
Getting Started Building Windows 8 HTML/JavaScript Metro Apps
Ad

Similar to Building the an End-to-End ASP.NET MVC 4, Entity Framework, HTML5, jQuery application (20)

PPTX
Asp.net mvc 6 with sql server 2014
PPT
Real-world Entity Framework
PPTX
04 integrate entityframework
PPTX
ZZ BC#7.5 asp.net mvc practice and guideline refresh!
PPTX
Webinar: How Financial Firms Create a Single Customer View with MongoDB
PDF
Building CLR/H Registration Site with ASP.NET MVC4 and EF4CodeFirst
PDF
Programming ASP NET MVC 4 Developing Real World Web Applications with ASP NET...
PDF
Programming ASP NET MVC 4 Developing Real World Web Applications with ASP NET...
PPTX
ASP.NET MVC as the next step in web development
PPTX
Real World MVC
PDF
[FREE PDF sample] Programming Entity Framework DbContext 1st Edition Julia Le...
PDF
Single View of the Customer
PDF
Microsoft .net 2015 Training in Noida Delhi ncr
PDF
How Financial Services Organizations Use MongoDB
PPTX
PPTX
Asp.net MVC training session
PDF
.NET Full Stack Development AI + IoT Integrated Course | TechEntry
PPTX
Asp.Net MVC
PDF
Nagi Ashraf Resume.pdf
Asp.net mvc 6 with sql server 2014
Real-world Entity Framework
04 integrate entityframework
ZZ BC#7.5 asp.net mvc practice and guideline refresh!
Webinar: How Financial Firms Create a Single Customer View with MongoDB
Building CLR/H Registration Site with ASP.NET MVC4 and EF4CodeFirst
Programming ASP NET MVC 4 Developing Real World Web Applications with ASP NET...
Programming ASP NET MVC 4 Developing Real World Web Applications with ASP NET...
ASP.NET MVC as the next step in web development
Real World MVC
[FREE PDF sample] Programming Entity Framework DbContext 1st Edition Julia Le...
Single View of the Customer
Microsoft .net 2015 Training in Noida Delhi ncr
How Financial Services Organizations Use MongoDB
Asp.net MVC training session
.NET Full Stack Development AI + IoT Integrated Course | TechEntry
Asp.Net MVC
Nagi Ashraf Resume.pdf

Recently uploaded (20)

PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
DOCX
The AUB Centre for AI in Media Proposal.docx
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Encapsulation theory and applications.pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Modernizing your data center with Dell and AMD
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
cuic standard and advanced reporting.pdf
Unlocking AI with Model Context Protocol (MCP)
Review of recent advances in non-invasive hemoglobin estimation
CIFDAQ's Market Insight: SEC Turns Pro Crypto
NewMind AI Weekly Chronicles - August'25 Week I
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Diabetes mellitus diagnosis method based random forest with bat algorithm
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
The AUB Centre for AI in Media Proposal.docx
“AI and Expert System Decision Support & Business Intelligence Systems”
Understanding_Digital_Forensics_Presentation.pptx
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Chapter 3 Spatial Domain Image Processing.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
Encapsulation theory and applications.pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Modernizing your data center with Dell and AMD
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
cuic standard and advanced reporting.pdf

Building the an End-to-End ASP.NET MVC 4, Entity Framework, HTML5, jQuery application

Editor's Notes

  • #7: Uses standards-based CSS
  • #8: ASP.NET Web API provides a framework for buildingRESTful services that can cater to a variety of clients. You can think of it as a gateway into your business rules and data access classes that can serve up different data formats ranging from JSON to XML to custom formats.Standard ASP.NET MVC returns HTML from views on the server. With ASP.NET Web API, JSON data (and other types of data) can be returned to Ajax clients. By using it you can easily serialize model objects to JSON with a minimal amount of code. In this section you&apos;ll learn more about the ASP.NET Web API and how it is used in the Account at a Glance application.
  • #9: Although templates can be embedded directly in a webpage, the Account at a Glance application stores the majority of the templates in separate HTML template files on the server and downloads them dynamically to minimize the initial size of the homepage. A script named scene.tile.binder.js is responsible for downloading templates, compiling them, and binding data into them.