ASP.NET and Visual Studio 2012 Robert Boedigheimer.

Slides:



Advertisements
Similar presentations
The Web Wizards Guide to Freeware/Shareware Chapter Four Essential Tools for Web Page Authors.
Advertisements

1 Unit 02. Visual Studio Visual Studio.NET Creating Projects Project Anatomy Using the IDE Code Snippets.
Improving Web Site Performance and Scalability While Saving Money Robert Boedigheimer ∙ Web Application
Chapter 3 – Designing your web pages Dr. Stephanos Mavromoustakos.
Shawn Wildermuth President, AgiliTrain Microsoft MVP (Data) Truth and Fiction.
Tutorial 6 Creating a Web Form
HTML 5 and CSS 3, Illustrated Complete Unit L: Programming Web Pages with JavaScript.
Philly.NET Hands-On MVC Razor, HTML5, CSS3 Rob Keiser, Bill Wolff.
The Web Warrior Guide to Web Design Technologies
What’s New in ASP.NET 4.5 Ori Calvo, 2012 John Bryce Hi-Tech College
Web Development in Microsoft Visual Studio Slide 2 Lecture Overview Introduce Visual Studio 2013 Create a first ASP.NET application.
Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 1.1 of…
CIS101 Introduction to Computing
1 of 6 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
DEV450 Visual Studio: Best Practices For Debugging Managed Applications Habib Heydarian Scott Nonnenberg Program Managers Microsoft Corporation.
SQL Reporting Services Overview SSRS includes all the development and management pieces necessary to publish end user reports in  HTML  PDF 
1 Using jQuery JavaScript & jQuery the missing manual (Second Edition)
Mark Phillip markphillip.com 200s, 304s, Expires Headers, HTTP Compression, And You.
Microsoft ® Official Course Monitoring and Troubleshooting Custom SharePoint Solutions SharePoint Practice Microsoft SharePoint 2013.
WEB329 ASP.NET: A Lap Around the New Enhancements for Web Developers in Microsoft Visual Studio 2005 Omar Khan Lead Program Manager Web Platform and Tools.
Windows.Net Programming Series Preview. Course Schedule CourseDate Microsoft.Net Fundamentals 01/13/2014 Microsoft Windows/Web Fundamentals 01/20/2014.
INTRODUCTION TO WEB DATABASE PROGRAMMING
Ori Calvo, 2010 “If people want to have maximum reach across *all* devices then HTML will provide the broadest reach” Scott Guthrie,
Introduction to.Net and ASP.Net Course Introduction Build Your Own ASP.Net Website: Chapter 1 Microsoft ASP.Net Walkthrough: Creating a Basic Web Forms.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
Philly.NET Hands-on Labs JAVASCRIPT SERIES. July 9: JavaScript Syntax Visual Studio ◦Projects ◦Editors ◦Debugging ◦Script blocks ◦Minification and bundling.
Database-Driven Web Sites, Second Edition1 Chapter 8 Processing ASP.NET Web Forms and Working With Server Controls.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
Tutorial 1: Getting Started with Adobe Dreamweaver CS4.
CNIT 133 Interactive Web Pags – JavaScript and AJAX JavaScript Environment.
ASP.NET Web Application and Development Digital Media Department Unit Credit Value : 4 Essential Learning time : 120 hours Digital.
E-Commerce: Introduction to Web Development 1 Dr. Lawrence West, Management Dept., University of Central Florida Topics What is a Web.
Sustainable SharePoint 2010 Customizations By Bill Keys.
Tutorial 121 Creating a New Web Forms Page You will find that creating Web Forms is similar to creating traditional Windows applications in Visual Basic.
JAOIT 8.  Dreamweaver is a program for creating web pages and managing websites without having to type HTML code.  WYSIWYG – What you see is what you.
Session 1 SESSION 1 Working with Dreamweaver 8.0.
Murach’s ASP.NET 4.0/VB, C1© 2006, Mike Murach & Associates, Inc.Slide 1.
Tutorial 10 Programming with JavaScript
Expression Web 3... now with TFS!. What is Expression Web 3? Professional web design and development tool Create standards-based Web sites faster & easier.
Are you getting the benefits from ASP.NET and AJAX? Introduction to the CTC ASP.NET Webforms Generator.
What’s New for Web Developers in ASP.NET and Visual Studio 2008 Kate Gregory Microsoft Regional Director
Session: 1. © Aptech Ltd. 2Introduction to the Web / Session 1  Explain the evolution of HTML  Explain the page structure used by HTML  List the drawbacks.
Module 2: Using Microsoft Visual Studio.NET. Overview Overview of Visual Studio.NET Creating an ASP.NET Web Application Project.
Jeff King Senior Program Manager Microsoft Session Code: WIA204.
Getting Started with ASP.NET MVC BRIJ BHUSHAN MISHRA.
PERFORMANCE ENHANCEMENT IN ASP.NET By Hassan Tariq Session #1.
Taking Control of Visual Studio through Extensions and Extensibility Anthony Cangialosi Senior Program Manager Lead Microsoft Corporation DEV311.
Web Technologies Lecture 3 Web forms. HTML5 forms A component of a webpage that has form controls – Text fields – Buttons – Checkboxes – Range controls.
Bundles, Minification Andres Käver, IT Kolledž
Advanced Windows Store App Development with HTML5 Refresh / Exam Prep M6: Tools and Asynchronous Programming Jeremy Foster Microsoft Technical.
Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 2-2 of…
Leveraging Web Content Management in SharePoint 2013 Christina Wheeler.
HTML Introduction HTML Editors HTML Basic HTML Elements HTML Attributes HTML Headings HTML Paragraphs HTML Formatting HTML Links HTML Head HTML CSS HTML.
1 Using jQuery JavaScript & jQuery the missing manual (Second Edition)
Danijel Malik Visual Studio ALM MVP What’s new in Visual Studio 2013 and Team Foundation Server 2013.
//liveVirtualacademy2011/ What’s New for ASP.NET 4.5 and Web Development in Visual Studio 11 Developer Preview Γιώργος Καπνιάς MVP, MCT, MCDP, MCDBA, MCTS,
Fiddler and Your Website Robert Boedigheimer. About Me Web developer since 1995 Columnist for aspalliance.com Pluralsight Author 3 rd Degree Black Belt,
1 Introducing Web Developer Tools Rapid application development tools ASP.NET-compatible web editors –Visual Studio.NET Professional Edition –Visual Studio.
111 State Management Beginning ASP.NET in C# and VB Chapter 4 Pages
Enhance Your Page Load Speed And Improve Traffic.
ASP.NET 2.0 Mohammed Abdelhadi Developer.NET Evangelist Microsoft Corporation.
TechEd /1/2018 7:56 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
ASP.NET Core Tag Helpers
ASP.NET Web Controls.
Debugging Your Website with Fiddler and Chrome Developer Tools
Microsoft Build /11/2018 2:12 AM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
Web Development in Microsoft Visual Studio 2013
Social Media And Global Computing Introduction to Visual Studio
HTML 5 Training HTML 5 SYMANTICS [Notes to trainer:
Introduction to ASP.NET Parts 1 & 2
Presentation transcript:

ASP.NET and Visual Studio 2012 Robert Boedigheimer

About Me Web developer since 1995 Columnist for aspalliance.com Pluralsight Author 3 rd Degree Black Belt, Tae Kwon Do ASP.NET MVP

Visual Studio 2012 Project and solution “round tripping” –VS 2010 SP1 VS 2012 –Can use new editor features –Breaks if use.NET 4.5 features Quick Launch Solution explorer –Drill into classes and methods –Image thumbnails

Visual Studio 2012 (cont) Search everywhere Preview Tab Browser Chooser Turn off all caps –HKEY_CURRENT_USER\Software\Micros oft\VisualStudio\11.0\General\SuppressUp percaseConversion –REG_DWORD 1

Editor Improvements Editor Parity (HTML, CSS, JavaScript) –Brace matching –Regions –Outlining –Commenting –Formatting

HTML Editor Improvements Matching tag renaming Event handler setup (source view) Smart Tasks (source view) HTML 5 –IntelliSense for tags –Snippets –New doctype, missing some simplifications Attribute Code IntelliSense

JavaScript Editor Improvements ECMAScript 5 full support IntelliSense improvements Implicit References –Tools -> Options -> Text Editor -> JavaScript -> IntelliSense -> References Go to definition Uses IE 9 JavaScript engine

CSS Editor Improvements CSS 3 CSS Snippets Vendor specific prefixes Improved color picker (with opacity) Hierarchical Indentation Knows common “hacks” Comment/Uncomment

Page Inspector Install with Web Platform Installer Browser diagnostics in Visual Studio –Trace from web page to source code –View position in DOM –Trace CSS properties for element to the rule

Request Validation Previous ASP.NET approach –Validation by default –Turn off at site or page level Deferred request validation (only validate when access) –Request.Unvalidated.Form –Web Forms ASP.NET controls always accessed! ValidateRequestMode=“Disabled” to turn off for an ASP.NET control

Miscellaneous Publish profiles –Build configurations included in dialog (debug, release) IIS Express Performance –Interning – symbolic links to single shared assembly, aspnet_intern.exe, runs in.NET 4 –JIT compiles across processor cores (on by default) –GC tuning

Fiddler Tracing tool specifically for HTTP Shows complete request and response (not packets) Can save archive of session Transfer Timeline

Performance Rules For most web sites, only 10-20% of response time is waiting for the HTML document to be generated and downloaded –Not optimizing code! Make fewer HTTP requests Send as little as possible Send it as infrequently as possible

Bundling and Minification Make fewer HTTP requests Send as little as possible Minimize CSS and JavaScript files –Remove whitespace, comments, excessive semicolons, etc Bundle/combine to reduce number of HTTP requests Previous method –AjaxMinifier, MSBuild – –Home page was 46% faster!!

ASP.NET Bundling and Minification Runtime (but results cached in memory) Default order –Common libraries first (jQuery, etc) –Alphabetical Multiple bundles are ok API –Customize ordering of files –Customize transforms (CoffeeScript, LESS, etc)

Content Expirations Client asks “if-modified-since” Small content files it is just as expensive to see if modified as to receive content Leverage user’s browser cache Setup expiration times for content folders Avoid requests for files that seldom change (.js,.css, images, etc) Rename the file if need to override browser caching

ASP.NET Bundling and Minification (2) Add a hash value to bundle URLs –Take advantage of caches for repeat visitors –Change the URL to avoid cache when change files using ResolveBundleUrl( )

Asynchronous Improvements Asynchronous HTTP Modules and Handlers await – wait asynchronously for some other code to complete async – used to mark method as asynchronous task based method

IIS 8 Web Sockets –Bi-directional sockets between web browser and server –Avoid polling, long polling, Comet –HTML 5 (IE 10, Firefox 6+, Chrome 14+) –System.Web.WebSockets Performance improvements –Reduction in startup time and memory footprint

Web Forms Drag user controls in source view Extract user controls from web pages DataBinding with HTML Encoding – Strongly Typed Data Controls –ItemType

HTML 5 TextBox supports HTML 5 types –search – –url –tel –range – slider –number – spinner –date, datetime, time, month, week –color Not yet aware of new input attributes (placeholder, autofocus, required, pattern, etc)

Unobtrusive Validation Previously had large amount of JavaScript injected into HTML when used validators JavaScript moved to external script Uses “data-” attributes –Control attributes so accessible on client, such as data-val-display=“Dynamic“ for Display=“Dynamic” Not used by default, opt in via web.config –ValidationSettings:UnobtrusiveValidationMode PM> Install-Package Microsoft.ScriptManager.jQuery

Model Binding Model binding originally introduced with ASP.NET MVC, while integrating with existing Web Forms server controls Previously used DataSource controls or ObjectDataSource –Developers often want more control “Code focused approach to data-binding” –Create methods for data access –Server controls will use methods at appropriate times

Model Binding (2) SelectMethod, UpdateMethod, DeleteMethod Filtering via “Value Provider Attributes” –querystring, cookies, form values, controls, viewstate, session, or profile Model Validation –Create a new partial class –System.ComponentModel.DataAnnotations – – ShowModelStateErrors –ModelState.IsValid

Web Essentials 2012 Mads Kristensen (Microsoft) Add vendor prefixes Show browser support Data URI conversion (fallback support) Insert hacks for specific IE versions Colors conversions CoffeeScript and LESS support JavaScript regions

Resources Scott Guthrie’s ASP.NET 4.5 Blog Series – Visual Studio 11 Developer Preview Training Kit –

Thank blogs.aspadvice.com/robertb Robert Boedigheimer