Using jQuery Templates with ASP.NET Stephen Walther Superexpert.com

Slides:



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

SharePoint 2013 Community Sites The Discussion Boards Extreme Makeover Marlene Lanphier Senior SharePoint Solutions Designer.
Christian Finn Director Microsoft Corporation.
Lecture 6/2/12. Forms and PHP The PHP $_GET and $_POST variables are used to retrieve information from forms, like user input When dealing with HTML forms.
JQuery Mobile, UI and Templates A better way for developing mobile and desktop apps
HTML5 Applications with ASP.NET Web Forms Stephen Walther Superexpert.com
{ Beyond String Concatenation Using jQuery Templating to Cleanly Display Your Data.
AJAX Technologies KAUNAS UNIVERSITY OF TECHNOLOGY MODULE: INFORMATION TECHNOLOGY GROUP: IF - 4/9 GROUP: VENTILIATORIAI
Agenda Introduction New Features in Map Suite Web Edition 3.0 Demonstration Where to Get Help and Learn More Q&A 2.
 Stephen Walther ASP.NET MVC Ninja Microsoft Corporation PV31.
1 Computing for Todays Lecture 22 Yumei Huo Fall 2006.
Performed by:Gidi Getter Svetlana Klinovsky Supervised by:Viktor Kulikov 08/03/2009.
Chapter 9 Introduction to the Document Object Model (DOM) JavaScript, Third Edition.
Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.
Simon Amrein Consultant Trivadis AG What is ASP.NET 4.0 Ajax Ajax Control Toolkit Microsoft Ajax Content Delivery Network jQuery jQuery Client Templates.
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.
JSP Standard Tag Library
SUNY Polytechnic Institute CS 490 – Web Design, AJAX, jQueryAngularJS AngularJS is a client-side JavaScript Framework for adding interactivity to HTML.
Crystal Hoyer Program Manager IIS Team Preview of features that will be announced at MIX09 Please do not blog, take pictures or video of session.
WEB FORM DESIGN. Creating forms for a web page For your web project you have to design a form for inclusion on your web site (the form information should.
SVG: The Past, Present and Future of Vector Graphics for the Web Patrick Dengler Senior Program Manager, Internet Explorer Team Member, W3C SVG Working.
ASP.NET + Ajax Jesper Tørresø ITNET2 F08. Ajax Ajax (Asynchronous JavaScript and XML) A group of interrelated web development techniques used for creating.
What’s New In Visual Studio 2010 Denys Kholod Technology Expert Hmarasoft.com.
XP New Perspectives on XML, 2 nd Edition Tutorial 10 1 WORKING WITH THE DOCUMENT OBJECT MODEL TUTORIAL 10.
ASP.NET + jQuery + Odata = Goodness Stephen Walther Superexpert.com
JDeveloper 10g and JavaServer Faces: High-Performance UIs on the Web Avrom Roy-Faderman Senior Programmer May, 2006.
Creating Web Applications Using ASP.NET Chapter Microsoft Visual Basic.NET: Reloaded 1.
Spicing Up Web Parts Randy Williams SharePoint Hawaii User Group May 11, 2011.
JavaScript, Fourth Edition
© 2010 Delmar, Cengage Learning Chapter 8 Collecting Data with Forms.
Sponsors Gold Silver Bronze Custom REST services and jQuery AJAX Building your own custom REST services and consuming them with jQuery AJAX.
Introduction to Web AppBuilder for ArcGIS: JavaScript Apps Made Easy
SharePoint Saturday Sponsors Gold Bronze Creating Knockout User Experiences in SharePoint with JavaScript Making awesome with Knockout, jQuery and SharePoint.
Are you getting the benefits from ASP.NET and AJAX? Introduction to the CTC ASP.NET Webforms Generator.
Server Control Tips & Tricks Presented by: Patrick Hynds Microsoft Regional Director CriticalSites CTO MCSD, MCSE+I, MCDBA, MCSA, MCP+Site Builder, MCT.
Sponsors Gold Silver Bronze Custom REST services and jQuery AJAX Building your own custom REST services and consuming them with jQuery AJAX.
Name Microsoft Student Partner Overview of the Visual Studio 2005 Express Products.
The Web Developer’s Toolbox Steve Fabian e:
Jeff King Senior Program Manager Microsoft Session Code: WIA204.
J. Michael Palermo IV Director of Development Interface, USA WUX203.
Microsoft ASP.NET Beginning Object-Oriented Web Design Bryan Jenks © Integrated Ideas 2005.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Bookstore Application: Middle Tier Introducing Code-Behind Files, Session State.
Unleash the Power of jQuery Learning & Development Team Telerik Software Academy.
WikiPlus Configurations Configure WikiPlus elements to your needs.
Nested componentization for advanced Web portal solutions Svebor Prstačić, dipl. ing., Dr. sc. Ivan Voras, Dr. sc. Mario Žagar.
WEB FORM DESIGN. Creating forms for a web page For your web project you have to design a form for inclusion on your web site (the form information should.
Headings are defined with the to tags. defines the largest heading. defines the smallest heading. Note: Browsers automatically add an empty line before.
Adxstudio Portals Training
Web Technologies Lecture 8 JQuery. “A fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax.
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.
ASP.Net ICallback Vijayalakshmi G M Senior Trainer Binary Spectrum.
Building an End-to-End HTML5 App with ASP.NET MVC, EF and jQuery Dan Wahlin.
The New Face of ASP.NET ASP.NET MVC, Razor, and jQuery Ido Flatow | Senior Architect | Sela | This session is.
Virtual techdays INDIA │ august 2010 Extending Orchard for HTML5 and IE9 Praveen Srivatsa │ Director, AsthraSoft Consulting Microsoft Regional Director,
MICROSOFT AJAX CDN (CONTENT DELIVERY NETWORK) Make Your ASP.NET site faster to retrieve.
111 State Management Beginning ASP.NET in C# and VB Chapter 4 Pages
XP Creating Web Pages with Microsoft Office
© Copyright SELA software & Education Labs Ltd Baruch Hirsch St.Bnei Brak Israel
Social Media And Global Computing Managing MVC With jQuery and AJAX
Jim Nakashima Program Manager – Cloud Tools Microsoft Corporation
Microsoft Ajax Taking Ajax to the Next Level
PHP Training at GoLogica in Bangalore
KnockoutJS -Pradeep Shet 31st August 2014.
Beginning Object-Oriented Web Design
Accessing Data in a .NET Web Application
A Quick Overview of ASP.NET Core 1.0
ASP.NET 4 Core Runtime for Web Developers
ASP.NET Core* MVC and Web API Shahed Chowdhuri
Secure Web Programming
EDITING EXISTING TEMPLATES
Presentation transcript:

Using jQuery Templates with ASP.NET Stephen Walther Superexpert.com

Agenda Basics template tags, template composition, wrapped templates, remote templates, template items jQuery Templates + Web Forms jQuery Templates + MVC jQuery Templates + WCF Service

Background Created by Microsoft ASP.NET Team ● Feedback from jQuery Core Team ● Heavy community involvement Official jQuery Plugin ● Downloadable from jQuery.com ● Documentation at api.jQuery.com Currently Beta

Why jQuery Templates? ● Context – A user loses context whenever there is a postback. ● Performance – You can page and sort data retrieved from the server without reloading entire page. ● Interactivity – You can create highly interactive client-side web applications.

How to Get jQuery Templates Download from: ● jQuery.com ● Github.com ● ASPNETCDN.com (Recommended) ● NuGet.org (Recommended) Install-Package jQuery.Templates

Basics Walkthrough: Using templates to display a list of products

Template Tags ● {{tmpl}} – Used for template composition. ● {{wrap}} – Used for wrapped templates. ● {{each}} – Used to iterate through a collection. ● {{if}} – Used to conditionally display template content. ● {{else}} – Used with {{if}} to conditionally display template content. ● {{html}} – Used to display the value of an HTML expression without encoding the value. Using ${…} or {{= }} performs HTML encoding automatically. ● {{= }}-- Used in exactly the same way as ${…}. ● {{! }} – Used for displaying comments. The contents of a {{!...}} tag are ignored

Template Tags Walkthrough: Using {{if}} and {{each}}

Template Composition Walkthrough: Building one template from multiple templates with the {{tmpl}} tag.

Remote Templates Walkthrough: Loading a remote template with an Ajax call. ● Tip: Don’t use remote templates – use user controls or partials instead

Wrapped Templates Walkthrough: Transforming a list of products with a wrapped template

Template Items ● data – The data associated with the Template Instance. For example, a product. ● tmpl – The template associated with the Template Instance. ● parent – The parent template item if the template is nested. ● nodes – The HTML content of the template. ● calls – Used by {{wrap}} template tag. ● nest – Used by {{tmpl}} template tag. ● wrap – Used to imperatively enable wrapped templates. ● html – Used to filter content from a wrapped template. ● update – Used to re-render a template item.

Template Items Walkthrough: Swapping a view template and edit template by using update()

Templates + Web Forms Walkthrough: Using jQuery templates with a ListView control.

Templates + MVC Walkthrough: Using jQuery templates with an MVC controller action.

Templates + WCF Data Services Walkthrough: Displaying Netflix data with templates.

Templates + WCF Data Services Walkthrough: Creating a simple CRUD application using templates + WCF Data Services.

Additional Resources Stephen Walther’s Blog ● jQuery Documentation ● Boris Moore’s Blog ●

Download the Sample Code Visit Stephen Walther’s blog to download the sample code for this talk: ●

Website: Phone:

Your Feedback is Important Please fill out a session evaluation form. Thank you!