Best Practices on ASP.NET AJAX Bill Xie Jan 30, CSU Fullerton SoCal Code Camp.

Slides:



Advertisements
Similar presentations
Svetlin Nakov Director Training and Consulting Activities National Academy for Software Development (NASD) ASP.NET 3.5 New Features.
Advertisements

Tridion 5.3 Templates.
Unit 02. ASP.NET Introduction HTML & Server controls Postbacks Page Lifecycle.
Module 1: Creating Responsive Pages with Ajax Creating Partial-Page Updates by Using AJAX Scripting Actions on the Web Client.
AJAX Development By Gary Mandela December 26,
ASP.NET Ajax Supplementary Tutorial. Why Use ASP.NET AJAX? - I ASP.NET AJAX enables you to build rich Web applications that have many advantages over.
SharePoint 2010 Client Side Object Model. Agenda Introduction The Problem Client side vs Server Side Client Side Object Model – How it works – What can.
Arthur Brost Portals and Collaboration Practice Manager twentysix New York I BP402.
SharePoint Forms All you ever wanted to know about forms but were afraid to ask.
Microsoft SharePoint 2010 technology for Developers
XML 6.7 XForms 6. Motivation HTML forms deliver the interactive WWW Forms are what make electronic transactions possible HTML forms are long overdue for.
The DataFlex Web Framework Changing the Game Stephen W. Meeley Development Team Data Access Worldwide
Developing HTML5 Application using MVVM pattern Pekka Ylenius.
Current Popular IT I Pertemuan 4 Matakuliah: T0403/Current Popular IT I Tahun: 2008.
Optimizing SharePoint Search Using Scope and Managed Properties By Kevin Israel, MVP.
By Gyan Deo Singh Building Rich Web UI with the Microsoft AJAX Library, Extensions, and Toolkit.
Website Development with PHP and MySQL Introduction.
Development of mobile applications using PhoneGap and HTML 5
Static VS Dynamic websites. 1-What are the advantages and disadvantages? 2- Which one should you choose and why?
Create with SharePoint 2010 Jen Dodd Sr. Solutions Consultant
ASP.NET AJAX. Content ASP.NET AJAX Ajax Control Toolkit Muzaffer DOĞAN - Anadolu University2.
Tutorial: Introduction to ASP.NET Internet Technologies and Web Application 4 th February 2010.
Introduction to the Enterprise Library. Sounds familiar? Writing a component to encapsulate data access Building a component that allows you to log errors.
Moving from Web-based collaboration to the mobile arena - Mobile, Task-Oriented Solutions Nimrod Geva Product Group Manager, KWizCom
Content Management System (CMS) Overview. January 2010 Carleton’s Current Web Presence serves 40 million web pages a year Currency and.
5/5/2005Toni Räikkönen Internet based data collection from enterprises using XML questionnaires and XCola engine CoRD Meeting May 11th 2005.
ASP.NET INTRODUCTION INTO وزارة التربية و التعليم العالي كلية العلوم و التكنولوجيا قسم علوم الحاسوب و تكنولوجيا المعلومات اعداد الاستاذ: عبد الله محمد.
CSCI 6962: Server-side Design and Programming Introduction to AJAX.
ASP.NET + Ajax Jesper Tørresø ITNET2 F08. Ajax Ajax (Asynchronous JavaScript and XML) A group of interrelated web development techniques used for creating.
AJAX in ASP.NET James Crowley Developer Fusion
.Net is a collection of libraries, templates and services designed to make programming applications of all kinds, easier, more flexible (multi platform),
AJAX Without the “J” George Lawniczak. What is Ajax?
Sofia, Bulgaria | 9-10 October Asynchronous Programming for ASP.NET 2.0 Developers Julie Lerman The Data Farm Julie Lerman The Data Farm.
ASP.NET and Model View Control Jesper Tørresø ITNET2 F08.
The West Wind Web Connection 5.0 Web Control Framework The West Wind Web Connection 5.0 Web Control Framework An overview of the new Web Control Framework.
Spicing Up Web Parts Randy Williams SharePoint Hawaii User Group May 11, 2011.
AJAX and Atlas in ASP.NET 2.0 William J. Steele MSDN Developer Evangelist Microsoft Corporation
LiveCycle Data Services Introduction Part 2. Part 2? This is the second in our series on LiveCycle Data Services. If you missed our first presentation,
Website Design Lecture 1. Outline Introduction to the module Outline of the Assessment Schedule Lecture Static XHTML, client side and server side Why.
Murach’s ASP.NET 4.0/VB, C1© 2006, Mike Murach & Associates, Inc.Slide 1.
CSCI 6962: Server-side Design and Programming AJAX Tools in JSF and ASP.
Joe Hummel, PhD Dept of Mathematics and Computer Science Lake Forest College
Introduction to ASP.NET1. 2 Web applications in general Web applications are divided into two parts –The server part –The client part The server part.
Web User Controls This presentation will cover the basics of defining, creating and using a web user control. Presented to Twin Cities.NET user group By.
ASP.NET &.NET Environment. Overview Part of Microsoft’s.NET environment Used for Development of  Websites  Internet applications  Web Services & XML.
Ventsislav Popov Crossroad Ltd.. 1. What is AJAX?  AJAX Concept  ASP.NET AJAX Framework 2. ASP.NET AJAX Server Controls  ScriptManager, UpdatePanel.
1 Geospatial and Business Intelligence Jean-Sébastien Turcotte Executive VP San Francisco - April 2007 Streamlining web mapping applications.
Java Web Development with NetBeans IDE -- Kai Qian Chapter 5 JavaServer Faces (JSF) Technology.
Telerik Software Academy ASP.NET Web Forms Telerik Software Academy ASP.NET Web Forms.
Active Server Pages (ASP), also known as Classic ASP or ASP Classic, was Microsoft's first server-side script engine for dynamically generated web pages.
Copyright © 2006 Pilothouse Consulting Inc. All rights reserved. Profiles and Active Directory Overview User profiles –Import from Active Directory –Creating.
Chapter 4: Working with ASP.NET Server Controls OUTLINE  What ASP.NET Server Controls are  How the ASP.NET run time processes the server controls on.
Microsoft ASP.NET Beginning Object-Oriented Web Design Bryan Jenks © Integrated Ideas 2005.
ASP.NET in Definition: 1.ASP.NET is a web application framework developed and marketed by Microsoft to allow programmers to build dynamic web sites,
Dave Salinas. What is XML? XML stands for eXtensible Markup Language Markup language, like HTML HTML was designed to display data, whereas XML was designed.
AJAX in Ruby-on-Rails. Ruby on Rails and AJAX AJAX can be done with just Javascript Easier if you use libraries –Prototype –SAJAX –jQuery Libraries only.
Virtual techdays INDIA │ 9-11 February 2011 SESSION TITLE Kamala Rajan S │ Technical Manager, Marlabs.
1 CS 3870/CS 5870: Note 19 AJAX Prog8. Test 2 50 Points Thursday, Nov 12 2:00 PM – 4:00 PM Lab
Introduction to ASP.NET development. Background ASP released in 1996 ASP supported for a minimum 10 years from Windows 8 release ASP.Net 1.0 released.
Name Title Microsoft Corporation
An ad in the yellow pages can cost up to $x It’s the same ad until the next publication! A full page ad in a specialty magazine can cost $2000 It’s the.
//liveVirtualacademy2011/ What’s New for ASP.NET 4.5 and Web Development in Visual Studio 11 Developer Preview Γιώργος Καπνιάς MVP, MCT, MCDP, MCDBA, MCTS,
The Microsoft Technical Roadshow 2007 AJAX Development Mike Ormond Developer & Platform Group Microsoft Ltd
ASP.NET AJAX Fedorov Sergey, student of Computing Mathematic and Cybernetics faculty, software department, NNGU
ASP.NET AJAX – Basics Svetlin Nakov Telerik Corporation
Working with Client-Side Scripting
Jim Fawcett CSE686 – Internet Programming Summer 2008
© 2016, Mike Murach & Associates, Inc.
AVG 24th 2015 ADVANCED c# - part 1.
MIS Professor Sandvig MIS 424 Professor Sandvig
Presentation transcript:

Best Practices on ASP.NET AJAX Bill Xie Jan 30, CSU Fullerton SoCal Code Camp

ASP.NET AJAX ASP.NET Web Forms Addon Not a Pure AJAX Framework -- Partial Rendering, ScriptManager, UpdatePanel Great Backward Compatibility with ASP.NET Web Forms -- apply all skills in Web Forms to AJAX application

ASP.NET AJAX Declarative syntax Async triggers can be any controls Support custom events Web service integration Page methods Client library A big set of ASP.NET AJAX server controls

Where Are The Problems Declarative syntax does not work in all cases -- UpdatePanel nested in a Repeater Lack a full picture of how UpdatePanels and Async Triggers are associated. -- Too many SEPARATE event handlers Use of complex controls as async triggers and custom events -- Repeater, GridView, User Controls, etc -- Distorting the meaning of async triggers -- Make code hard to read

What Are The Problems Contd Page As One Application -- Imagine more and more more and more async triggers and UpdatePanels BIG PROBLEM -- Change and Maintenance Better way to do the ASP.NET AJAX instead of the ad hoc way? -- Consistent, simple, straightforward, ….

Can We Solve The Problems? Fortunately, the answer is YES A reduced set of ASP.NET AJAX can do the trick The solution still keeps the pros of all ASP.NET AJAX good features, but it leads to applications much easier to change and maintenance

The Solution Decouple async triggers and UpdatePanels at design time -- Specify async triggers (inside UpdatePanel, page-level trigger with instance, nested) -- Wrap areas wherever you want to update in the async postback with UpdatePanel Centralized handling of async postbacks -- Identify async triggers with AsynchronousPostBackElementID -- no event handlers, if else or switch instead -- Associate UpdatePanels dynamically (ChildrenAsTriggers) Some tweaks -- GridView sorting event Demo

Case Studies Async Triggers Page looks simple but databinding is very complex

Case Studies UpdatePanels

Q & A You can find the technique in this article magazine.com/Article.aspx?quickid= Search bill xie Contact me --