Module 1: Creating Responsive Pages with Ajax Creating Partial-Page Updates by Using AJAX Scripting Actions on the Web Client.

Slides:



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

Svetlin Nakov Director Training and Consulting Activities National Academy for Software Development (NASD) ASP.NET 3.5 New Features.
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.
Microsoft Office SharePoint Portal Server 2007 Introduction to InfoPath Forms Services Daryl L. Rudolph.
ASP.NET Intro An introduction to the languages and communication of an ASP.NET system.
.NET 3.5 SP1 New features Enhancements Visual Studio 2008 SP1 New features Enhancements Additional features/enhancements.
Current Popular IT I Pertemuan 4 Matakuliah: T0403/Current Popular IT I Tahun: 2008.
Managing User Settings with Group Policy
AJAX Development Mike Ormond Developer & Platform Group Microsoft Ltd
By Gyan Deo Singh Building Rich Web UI with the Microsoft AJAX Library, Extensions, and Toolkit.
Multiple Tiers in Action
Microsoft ASP.NET AJAX - AJAX as it has to be Presented by : Rana Vijayasimha Nalla CSCE Grad Student.
Performed by:Gidi Getter Svetlana Klinovsky Supervised by:Viktor Kulikov 08/03/2009.
Microsoft ® Official Course Developing Optimized Internet Sites Microsoft SharePoint 2013 SharePoint Practice.
Microsoft ® Official Course Introducing Apps for SharePoint SharePoint Practice Microsoft SharePoint 2013.
User Group 2015 Version 5 Features & Infrastructure Enhancements.
Simon Amrein Consultant Trivadis AG What is ASP.NET 4.0 Ajax Ajax Control Toolkit Microsoft Ajax Content Delivery Network jQuery jQuery Client Templates.
Server Side Scripting Norman White. Where do we do processing? Client side – Javascript (embed code in html) – Java applets (send java program to run.
ASP.NET AJAX. Content ASP.NET AJAX Ajax Control Toolkit Muzaffer DOĞAN - Anadolu University2.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
AJAX Chat Analysis and Design Rui Zhao CS SPG UCCS.
Module 7: Validating User Input.
ASP.NET + Ajax Jesper Tørresø ITNET2 F08. Ajax Ajax (Asynchronous JavaScript and XML) A group of interrelated web development techniques used for creating.
.Net is a collection of libraries, templates and services designed to make programming applications of all kinds, easier, more flexible (multi platform),
ASP.NET AJAX 1. Ordinary web applications vs. AJAX Ordinary web application The full page is updated at each request The page is not available while being.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
Power ASP.NET AJAX Programming. Agenda Partial-page rendering –With UpdatePanel –Without UpdatePanel PageRequestManager Drag-and-drop user interfaces.
AJAX and Atlas in ASP.NET 2.0 William J. Steele MSDN Developer Evangelist Microsoft Corporation
CSCI 6962: Server-side Design and Programming AJAX Tools in JSF and ASP.
Ventsislav Popov Crossroad Ltd.. 1. What is AJAX?  AJAX Concept  ASP.NET AJAX Framework 2. ASP.NET AJAX Server Controls  ScriptManager, UpdatePanel.
Database Handling, Sessions, and AJAX. Post Back ASP.NET Functionality The IsPostBack method in ASP.NET is similar to the BlackBerry.refresh method –IsPostBack.
Telerik Software Academy ASP.NET Web Forms Telerik Software Academy ASP.NET Web Forms.
Real-World AJAX Seminar - March 13, 2006 Bringing the Richness and Responsiveness of Desktop Applications to the Web Sahil Malik telerik.
Module 1: Working with ASP.NET. Overview Introducing ASP.NET Creating Web Forms Adding ASP.NET Code to a Page Handling Page Events Discussion: ASP vs.
Microsoft ASP.NET Beginning Object-Oriented Web Design Bryan Jenks © Integrated Ideas 2005.
1 CS 3870/CS 5870: Note 19 SiteMap and AJAX Lab 8.
Client-side & Server-side Scripting ©Richard L. Goldman August 5, 2003 Requires PowerPoint 2002 or later for full functionality.
the acronym for Asynchronous JavaScript and XML.
Ajax for Dynamic Web Development Gregory McChesney.
Building AJAX-Enabled Applications with ASP.NET AJAX Framework Peter Ty Developer Evangelist Microsoft Hong Kong
ASP. ASP is a powerful tool for making dynamic and interactive Web pages An ASP file can contain text, HTML tags and scripts. Scripts in an ASP file are.
IT533 Lectures ASP.NET AJAX.
Display Page (HTML/CSS)
05 | Integrating JavaScript and MVC 4 Jon Galloway | Tech Evangelist Christopher Harrison | Head Geek.
COSC 2328 – Web Programming.  PHP is a server scripting language  It’s widely-used and free  It’s an alternative to Microsoft’s ASP and Ruby  PHP.
ASP.Net ICallback Vijayalakshmi G M Senior Trainer Binary Spectrum.
1 CS 3870/CS 5870: Note 19 AJAX Prog8. Test 2 50 Points Thursday, Nov 12 2:00 PM – 4:00 PM Lab
Spry. Adobe Dreamweaver CS3 and Spry Adobe Dreamweaver CS3 allows the user to include additional functionality provided by the Spry JavaScript library.
Name Title Microsoft Corporation
MICROSOFT AJAX CDN (CONTENT DELIVERY NETWORK) Make Your ASP.NET site faster to retrieve.
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
 2009 Pearson Education, Inc. All rights reserved.
Visual Studio 2017 By Michael Washington
ASP.NET AJAX – Basics Svetlin Nakov Telerik Corporation
Active Server Pages Computer Science 40S.
Working with Client-Side Scripting
CS 3870/CS 5870 AJAX Prog8.
Jim Fawcett CSE686 – Internet Programming Summer 2008
© 2016, Mike Murach & Associates, Inc.
IS 360 Course Introduction
MIS Professor Sandvig MIS 424 Professor Sandvig
SharePoint & jQuery: Better Together
ASP.NET Module Subtitle.
Lesson 1 The Web.
Choosing between Silverlight and AJAX
04 | Apps and SharePoint Chris Johnson | SharePoint Guru
Client-Server Model: Requesting a Web Page
Presentation transcript:

Module 1: Creating Responsive Pages with Ajax Creating Partial-Page Updates by Using AJAX Scripting Actions on the Web Client

Lesson: Creating Partial-Page Updates by Using AJAX What are Partial-Page Updates? Discussion: Applications for Partial-Page Updates The ASP.NET AJAX Controls Implementing Partial-Page Updates Demonstration: Partial-Page Updates The ASP.NET AJAX Control Toolkit

What are Partial-Page Updates? Initial download is the whole page Parts of the page can refresh while the rest of the page remains static

Discussion: Applications for Partial-Page Updates Scenario: A small page that displays brief details about a single product. Scenario: A page that displays brief details about many products. Scenario: A page that displays brief details about share prices.

The ASP.NET AJAX Controls ScriptManager Manages script libraries and script files, partial-page rendering, and other functions. UpdatePanel Enables sections of a page to be partially rendered without a page postback. UpdateProgress Provides visual feedback on the browser when the contents on UpdatePanel controls refresh. Timer Performs partial-page updates at defined intervals.

Creating the ScriptManager Control: Implementing Partial-Page Updates <asp:ScriptManager ID="ScriptManager1" runat="server" /> <asp:ScriptManager ID="ScriptManager1" runat="server" /> Creating an Update Panel and Adding Controls: <asp:GridView ID=GridView1 datasourceid=MyDataSource autogeneratecolumns=true allowpaging=false runat=server> <asp:Button ID=UpdateButton Text=Refresh the Grid runat=server /> <asp:GridView ID=GridView1 datasourceid=MyDataSource autogeneratecolumns=true allowpaging=false runat=server> <asp:Button ID=UpdateButton Text=Refresh the Grid runat=server />

The ASP.NET AJAX Control Toolkit Shared source project between Microsoft and the ASP.NET AJAX community Downloadable from Contains a collection of templates and controls Provides an infrastructure to write reusable and extensible ASP.NET AJAX controls

Lesson: Scripting Actions on the Web Client Improving Responsiveness by Creating Client- Side Scripts Creating Server-Side AJAX Services Calling Services from Client-Side Scripts Best Practices for Client-Side Scripting and AJAX

Improving Responsiveness by Creating Client-Side Scripts

Creating Server-Side AJAX Services Implementing a Server-Side Service as an ASP.NET Web Service Implementing a Server-Side Service as Page Methods Formats for Service Messages

Calling Services From Client-Side Scripts Adding Service References and Client-Side Script: <asp:ScriptManager ID="ScriptManager1" runat="server"> <asp:ServiceReference Path=NewsWebService.asmx" /> <asp:ScriptReference Path=NewsClientScript.js" /> <asp:ScriptManager ID="ScriptManager1" runat="server"> <asp:ServiceReference Path=NewsWebService.asmx" /> <asp:ScriptReference Path=NewsClientScript.js" /> Calling a Service Function: function GetNews() AdventureWorks.NewsWebService.GetNews(Succeeded) function GetNews() AdventureWorks.NewsWebService.GetNews(Succeeded)

Best Practices for Client-Side Scripting and AJAX Consider using AJAX whenever a small portion of a large page must refresh. Use the UpdatePanel to enable partial page updates without custom JavaScript code. Use the UpdateProgress control to reassure users when a partial page update takes time. Register client-side scripts with the AJAX client-side library to make use of AJAX extensions to JavaScript. Use AJAX services and custom JavaScript for optimum performance. Prevent use of the GET request verb in AJAX requests for increased security.

Lab: Creating Responsive Pages by Using Client-Side Technologies Exercise 1: Implementing Partial-Page Updates by Using AJAX Controls Exercise 2: Accessing a Web Service by Using a Client Side Script Estimated time: 60 minutes