AJAX in ASP.NET James Crowley Developer Fusion

Slides:



Advertisements
Similar presentations
6/3/2015eBiquity1 Tutorial on AJAX Anubhav Kale (akale1 AT cs DOT umbc DOT edu)
Advertisements

Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 1.1 of…
Product Management System Xiao Zhou. Introduction Why This project? It is an opportunity to learn new things and gain some experiences. My friend is a.
Introduction to ASP.NET, Second Edition2 Chapter Objectives.
Microsoft ASP.NET AJAX - AJAX as it has to be Presented by : Rana Vijayasimha Nalla CSCE Grad Student.
SignalR Real Time with SignalR Jared Rhodes Senior Consultant Magenic.
Chapter 6 DOJO TOOLKITS. Objectives Discuss XML DOM Discuss JSON Discuss Ajax Response in XML, HTML, JSON, and Other Data Type.
ASP.NET 4.0 Web Developers User Group Israel June 2009.
Client/Server Architectures
Agenda What is AJAX? What is jQuery? Demonstration/Tutorial Resources Q&A.
Windows.Net Programming Series Preview. Course Schedule CourseDate Microsoft.Net Fundamentals 01/13/2014 Microsoft Windows/Web Fundamentals 01/20/2014.
ASP.NET AJAX. Content ASP.NET AJAX Ajax Control Toolkit Muzaffer DOĞAN - Anadolu University2.
OOP and Web Applications Michael Juřek Architect Evangelist Microsoft Corporation.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
JavaScript & jQuery the missing manual Chapter 11
GIS technologies and Web Mapping Services
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 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.
Ajax Technology for the Web Nic Shulver, FCET, Staffordshire University Introduction What is it? Pros and Cons Why is it important? Traditional Client-Server.
Writing various AJAX forms in Drupal 7 1. Overview of Form API 2. Ctools 2.1 Ctools features 3. Ajax 3.1 Ajax Forms in Drupal 4. Putting it all together.
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
Lecture 19 Web Application Frameworks Boriana Koleva Room: C54
Understanding AJAX Hype, Hope, Hurt and Help for the Web MJTS May 4th, 2006 _________________________ Terence Conklin, Conklin Systems
ASP.NET 2.0 : Future Directions Developing Rich Web Applications with “Atlas” 7 & 8 March 2006 ICC Gent Contact me :
Random Logic l Forum.NET l AJAX Behind the buzz word Forum.NET ● January 23, 2006.
Joe Hummel, PhD Dept of Mathematics and Computer Science Lake Forest College
Chapter 6 Server-side Programming: Java Servlets
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.
Introducing ASP.NET 2.0. Internet Technologies WWW Architecture Web Server Client Server Request Response Network HTTP TCP/IP PC/Mac/Unix + Browser (IE,
Telerik Software Academy ASP.NET Web Forms Telerik Software Academy ASP.NET Web Forms.
AJAX Compiled from “AJAX Programming” [Sang Shin] (Asynchronous JavaScript and XML)
Real-World AJAX Seminar - March 13, 2006 Bringing the Richness and Responsiveness of Desktop Applications to the Web Sahil Malik telerik.
Web Architecture Introduction
Server-side Programming The combination of –HTML –JavaScript –DOM is sometimes referred to as Dynamic HTML (DHTML) Web pages that include scripting are.
Quick overview of ASP.NET Ajax Ajax deep-dive Cover some key real-world problems Discuss solutions, patterns, opportunities Lots of demos And more of.
Microsoft ASP.NET Beginning Object-Oriented Web Design Bryan Jenks © Integrated Ideas 2005.
Ajax for Dynamic Web Development Gregory McChesney.
Chapter 16: Ajax-Enabled Rich Internet Applications with XML and JSON TP2543 Web Programming Mohammad Faidzul Nasrudin.
Building AJAX-Enabled Applications with ASP.NET AJAX Framework Peter Ty Developer Evangelist Microsoft Hong Kong
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
Weekend MS CS Program Internet and Web Technologies COT 5930 Web Project Development - Ajax Dr. Roy Levow, Associate Chair & Professor
Ajax VS Flex A comparison based on shopping cart implementation PoHsu Yeh py2157.
 Web pages originally static  Page is delivered exactly as stored on server  Same information displayed for all users, from all contexts  Dynamic.
INNOV-2: Build a Better Web Interface Using AJAX Chris Morgan Pandora Software Systems
Web Technology (NCS-504) Prepared By Mr. Abhishek Kesharwani Assistant Professor,UCER Naini,Allahabad.
 AJAX technology  Rich User Experience  Characteristics  Real live examples  JavaScript and AJAX  Web application workflow model – synchronous vs.
1 Introduction to Web Application Review. 2 Five Layers Architecture HTML, CSS, Java Script ASP.net User ’ s.dll, Nunit, Web Services ADO.net SQL Server,
ASP.Net ICallback Vijayalakshmi G M Senior Trainer Binary Spectrum.
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
Submitted by: Moran Mishan. Instructed by: Osnat (Ossi) Mokryn, Dr.
//liveVirtualacademy2011/ What’s New for ASP.NET 4.5 and Web Development in Visual Studio 11 Developer Preview Γιώργος Καπνιάς MVP, MCT, MCDP, MCDBA, MCTS,
1 Introducing Web Developer Tools Rapid application development tools ASP.NET-compatible web editors –Visual Studio.NET Professional Edition –Visual Studio.
Ajax & Client-side Dynamic Web Gunwoo Park (Undergraduate)
Building rich web applications with ASP.NET AJAX Mike Ormond Developer & Platform Evangelism Group, Microsoft Ltd Developer & Platform Evangelism Group,
Jim Fawcett CSE686 – Internet Programming Spring 2014
JavaScript and Ajax (Ajax Tutorial)
Google Web Toolkit Tutorial
Working with Client-Side Scripting
GeneXus 9.0: Web applications at their higher power
Shanku Niyogi PRS 312 Group Program Manager Microsoft Corporation
KnockoutJS -Pradeep Shet 31st August 2014.
By Gary Mandela December 26, 2006
AJAX.
Ajax.NET 1st AJAX library for Microsoft .NET
AJAX Robin Burke ECT 360.
Choosing between Silverlight and AJAX
Presentation transcript:

AJAX in ASP.NET James Crowley Developer Fusion

Overview What is AJAX? How does it work? Using it in ASP.NET 1.x Using it in ASP.NET 2.0 Challenges

What is AJAX (and who cares?) Current postback solutions can be slow and confusing to users AJAX allows server-side processing to occur without a postback, and therefore... a more interactive & responsive UI Nothing new, but all the rage thanks to Google Maps, Flickr, and A9 to name a few

How it works Server Web Server Database Client Browser JavaScript DHTML XML HTTP Object 1 Async HTTP Request Parameters

How it works Server Web Server Database Client Browser JavaScript DHTML XML HTTP Object 2

How it works Server Web Server Database Client Browser JavaScript DHTML XML HTTP Object 3 Async HTTP Response Text, XML, HTML, etc

AJAX in ASP.NET 1.x Either we deal with the XML HTTP request ourselves or we can use an existing library, such as  AJAX.NET wrapper  “My AJAX.NET”

Demo “Colourizing” Code

Complex Data Types Need to either reproduce (a subset of) the.NET type system within JavaScript or vice-versa Need to serialize for transfer via HTTP Serializable return types dealt with automatically Parameters are harder

Demo “Google Suggest”

AJAX in ASP.NET 2.0 Known as “Script Callbacks” Call ClientScript.GetCallBackEventReference to get the string for a javascript call to trigger a callback Implement the ICallbackEventHandler interface public interface ICallbackEventHandler { void RaiseCallbackEvent(string eventArgument); String GetCallbackResult(); } public string GetCallbackEventReference(System.Web.UI.Control control, string argument, string clientCallback, string context, string clientErrorCallback, bool useAsync)

ASP.NET 2.0 vs AJAX.NET No dynamic mapping of parameters using reflection More complicated with multiple callbacks No JavaScript objects corresponding to server-side types (only returning strings) Executes within the page lifecycle

Things to note ViewState not updated during a callback because of allowance for parallel callbacks Page.IsPostBack is true for callbacks and postbacks. Use Page.IsCallback Request.Browser.SupportsCallback

Demo AJAX in ASP.NET 2.0

Atlas New library from Microsoft to plug-in to ASP.NET 2.0 Preview available from Warning: pre-Alpha quality! But Microsoft wants your feedback…

Atlas Cross-browser script libraries, bringing namespaces, inheritance, and plenty more Callbacks triggered in similar way to AJAX.NET library Web Services integration Declarative data binding New AJAX-enabled server controls

Things to watch out for… Debugging is a pain Response timeouts and server exceptions Non-JavaScript/non-ActiveX scenarios

Things to watch out for… Accessibility, page flow, scroll position Can break layered architectures Inability to access by URL, and breaking back/forward browser buttons No search indexing for AJAX’ed data

Wrapping Up Go away and experiment! me: AJAX enables you to create web apps that are… more responsive with enhanced functionality … and a great user experience

References ASP.NET AJAX Libraries  (AJAX.NET)  (My AJAX.NET)  (Atlas) My Contact Details  Web: 