Tips and Tricks with ASP.NET 2.0 Bradley Millington Program Manager Web Platform and Tools.

Slides:



Advertisements
Similar presentations
Malek Kemmou Technology Architect, Application Platform Microsoft Middle East and Africa Overview of ASP.NET 2.0.
Advertisements

Master Pages, User Controls, Site Maps, Localization Svetlin Nakov Telerik Corporation
Microsoft Dynamics AX 2009 Integration and Development with.NET Framework Enterprise Portal.
11 ASP.NET Slides based off:. 22 B ACKGROUND - W EB A RCHITECTURE Web Server PC/Mac/Unix/... + Browser Client Server Request:
DEV392: Extending SharePoint Products And Technologies Through Web Parts And ASP.NET Clint Covington, Program Manager Data And Developer Services - Office.
What’s new for web developers? Mike Ormond, Developer Evangelist Manager …
Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 1.1 of…
Microsoft SharePoint 2013 SharePoint 2013 as a Developer Platform
Chapter 11 ASP.NET JavaScript, Third Edition. 2 Objectives Learn about client/server architecture Study server-side scripting Create ASP.NET applications.
IIS 7: The Next Generation Web Application Server Platform Michael Volodarsky Program Manager Web Platform and Tools Team Microsoft Corporation.
Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction.
DAT304 Leveraging XML and HTTP with Sql Server Irwin Dolobowsky Program Manager Webdata Group.
WSS 3.0 Architecture and Enhancements Ashvini Shahane Member – Synergetics Research Lab.
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.
DEV317 Integrating Extensible Business Graphics into Enterprise Applications using Visio 2003 Mai-lan Tomsen Bukovec Program Manager.
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.
Tutorial: Introduction to ASP.NET Internet Technologies and Web Application 4 th February 2010.
ASP.NET Whidbey Overview  Wallace B. McClure  Scalable Development, Inc. Scalable Development, Inc. Building systems today that perform tomorrow.
CIS 375—Web App Dev II ASP.NET 2 Introducing Web Forms.
.NET Validation Controls MacDonald Ch. 8 MIS 324 MIS 324 Professor Sandvig Professor Sandvig.
Telerik Software Academy ASP.NET Web Forms Data Validation, Data Validators, Validation Groups Telerik Software Academy
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
Beginning Web Site Development Module 1 – Dynamic Web Site Development Fundamentals of building dynamic Web sites with ASP.NET 2.0 and C# Version.
Global Customer Partnership Council Forum | 2008 | November 18 1IBM - GCPC MeetingIBM - GCPC Meeting IBM Lotus® Sametime® Meeting Server Deployment and.
Cool Tips and Tricks with ASP.NET 2.0 Stefan Schackow Program Manager ASP.NET Team Microsoft Corporation.
ASP.Net Web Applications. Characteristics of a typical data driven web application Web Server HTML Graphics Active-X Java Applets HTTP Request ADO / JDBC.
Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 4-1 of…
© Minder Chen, ASP.NET 2.0: Introduction - 1 ASP.NET 2.0 Minder Chen, Ph.D. Framework Base Class Library ADO.NET: Data & XML.
AJAX and Atlas in ASP.NET 2.0 William J. Steele MSDN Developer Evangelist Microsoft Corporation
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.
11 Web Services. 22 Objectives You will be able to Say what a web service is. Write and deploy a simple web service. Test a simple web service. Write.
ASP.NET.. ASP.NET Environment ASP.NET is Microsoft's programming framework that enables the development of Web applications and services. It is an easy.
Microsoft SharePoint Server 2010 for the Microsoft ASP.NET Developer Yaroslav Pentsarskyy
Murach’s ASP.NET 4.0/VB, C1© 2006, Mike Murach & Associates, Inc.Slide 1.
Joe Hummel, PhD Dept of Mathematics and Computer Science Lake Forest College
Bradley Millington Senior Program Manager Microsoft Corporation SESSION CODE: WEB 306.
Ventsislav Popov Crossroad Ltd.. 1. What is AJAX?  AJAX Concept  ASP.NET AJAX Framework 2. ASP.NET AJAX Server Controls  ScriptManager, UpdatePanel.
Data Access in ASP.NET 2.0 Bradley Millington Program Manager Web Platform and Tools.
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.
Name Microsoft Student Partner Overview of the Visual Studio 2005 Express Products.
WEB428 ASP.NET 2.0: Advanced Server Controls and Web Parts with ASP.NET 2.0 Andres Sanabria Program Manager Web Platform and Tools Team Microsoft Corporation.
VITALE, CATURANO & COMPANY LTD Microsoft SharePoint Web Part Development Overview VITALE, CATURANO & COMPANY LTD SharePoint Developer Series – Web Part.
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.
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.
Introducing ASP+ Scott Mitchell
BlackBerry Applications using Microsoft Visual Studio and Database Handling.
1 © Xchanging 2010 no part of this document may be circulated, quoted or reproduced without prior written approval of Xchanging. MOSS Training – UI customization.
Preface IIntroduction Objectives I-2 Course Overview I-3 1Oracle Application Development Framework Objectives 1-2 J2EE Platform 1-3 Benefits of the J2EE.
WEB322 ASP.NET Internals: Under the Covers – Exploring Internals, Page Lifecycle and the Compilation Model Simon Calvert Program Manager Web Platform and.
A Lap Around New Enhancements for Web Developers in Visual Studio 2005 Alexander Holy Developer Evangelist, Microsoft EMEA
Extending SharePoint through Web Parts and ASP.NET 최승현 대리 한국마이크로소프트.
Navigation Framework using CF Architecture for a Client-Server Application using the open standards of the Web presented by Kedar Desai Differential Technologies,
//liveVirtualacademy2011/ What’s New for ASP.NET 4.5 and Web Development in Visual Studio 11 Developer Preview Γιώργος Καπνιάς MVP, MCT, MCDP, MCDBA, MCTS,
Vinod Unny Enterprise InfoTech Microsoft Regional Director, North India
I Copyright © 2004, Oracle. All rights reserved. Introduction.
ASP.NET 2.0 Mohammed Abdelhadi Developer.NET Evangelist Microsoft Corporation.
Building rich web applications with ASP.NET AJAX Mike Ormond Developer & Platform Evangelism Group, Microsoft Ltd Developer & Platform Evangelism Group,
Introduction to ASP.NET 2.0
DotNetNuke® Web Application Framework
Data Virtualization Tutorial… CORS and CIS
Haritha Dasari Josue Balandrano Coronel -
SharePoint-Hosted Apps and JavaScript
Web Development Using ASP .NET
Using JDeveloper.
JavaServer Faces: The Fundamentals
ASP.NET 4 Core Runtime for Web Developers
ASP.NET 2.0 Overview Created By: Ajay Bahoriya.
Server Controls Validation Controls
Introduction to ASP.NET Parts 1 & 2
MS Confidential : SharePoint 2010 Developer Workshop (Beta1)
Presentation transcript:

Tips and Tricks with ASP.NET 2.0 Bradley Millington Program Manager Web Platform and Tools

Agenda Cross Page Post-backs Validation Groups Wizard Control URL Rewriting/Mapping Compilation Build Providers and.WSDL Files “No-Compile” Pages Building CMS System w/ File System Provider Client Script Goodies, Client Callbacks XML Databinding

Cross Page Postbacks 2.0 Supports Cross Page Postbacks –Scenario: Search or lookup button at top of page Postback target via “PostBackUrl” property – –Can be declaratively or programmatically set Postback “target page” has full access to server controls for “originating page” –Access controls via “Page.PreviousPage” property –

Cross-Page Postback Example ‘ Page2.aspx Dim MyCalendar as Calendar = PreviousPage.FindControl(“MyCalendar”) Label1.Text = “You selected: “ & MyCalendar.SelectedDate

Cross Page Postbacks demo Bradley Millington Program Manager Web Platform and Tools

Validation Groups Enable validation controls to only apply in response to a specific button/action –Today validation controls apply “all or nothing” Indicated via “ValidationGroup” property –Supported by all Validation and Postback controls –Controls in ValidationGroup validate with postback Programmatic Support for Validating Groups –If (Page.Validate(“group_name”)) Then –Page.IsValid evaluates ValidationGroup Postback

ValidationGroup Example: <asp:requiredfieldvalidator ValidationGroup=“Group1” ErrorText=“Need to Fill in Value!” ControlToValidate=“TextBox1” runat=“server”/> <asp:requiredfieldvalidator ValidationGroup=“Group2” ErrorText=“Need to Fill in Value!” ControlToValidate=“TextBox2” runat=“server”/> <asp:button text=“Group1” ValidationGroup=“Group1” runat=“server”/> <asp:button text=“Group2” ValidationGroup=“Group2” runat=“server”/>

Validation Groups demo Bradley Millington Program Manager Web Platform and Tools

Control Enables linear and non-linear navigation –Developer defines templated “steps” within control –Control state maintained throughout wizard steps Ideal for multi-step gathering workflow –Example Usage: Customer Registration – built w/ Wizard Flexible Wizard Control Navigation Model –MoveTo(wizardStep), ActiveStepIndex, etc –Events can fire both on individual steps and completion Controls in wizard templates flattened to page –Enables direct control access w/o template fishing

Example Enter Name: Enter State: Congrats! The registration is complete! Sub FinishBtn_Click(Sender as Object, E as WizardNavigationEventArgs) Label1.Text = “Hi “ & Name.Text & “ you are from: “ & State.Text End Sub

Wizard Control demo Bradley Millington Program Manager Web Platform and Tools

URL Rewriting/Mapping Built-in UrlMapping Module for rewriting paths –Enables “vanity” URLs instead of querystrings –Enables easy moving of pages without 404s

URL Rewriting demo Bradley Millington Program Manager Web Platform and Tools

Compilation Build Providers 2.0 introduces concept of “Build Providers” that participate in compile process –Enable declarative file formats as code resources Example Providers Built-in Whidbey: –.WSDL (web service proxies) –.XSD (data components) –.RESX (resource files) Model of declarative files + partial types enables rich functionality w/ rich extensibility

Compilation Build Providers To build your own custom build provider: –Subclass System.Web.Compilation.BuildProvider –Register file extension in web/machine.config

Compilation Build Providers demo Bradley Millington Program Manager Web Platform and Tools

“No-Compile” Pages New feature in 2.0 to enable.ASPX pages to be executed without compilation –V1.aspx pages always dynamically compiled Two primary scenarios: –Enable site administrators to lockdown ability of content owners to write code on portions of site –Enable better scaling for sites with thousands of pages – don’t require separate type for each Note: This is independent of the new pre-compilation tool – which compiles the pages prior to deployment

“No-Compile” Config [mode] = “Always”, “Never”, “Auto” // Default: Always

No Compile Pages demo Bradley Millington Program Manager Web Platform and Tools

File System Provider 2.0 enables web content to be served from non- file system locations –Example: Database or content system Developers sub-class “VirtualPathProvider”: –GetFileHash() –GetFile() –GetDirectory() –Etc… Tip: Can leverage new SqlCacheDependency object to enable SQL Cache Invalidation

Simple DB-Driven Provider demo Bradley Millington Program Manager Web Platform and Tools

Client-side click event handlers on controls: Focus mechanisms: –Page.SetFocus(control) –TextBox.Focus() Default button and focus – <asp:button Text=“Push Me!” OnClick=“Button1_Click” OnClientClick=“ClientButton1_Click” runat=“server” /> Client Script Goodies

Validation Error Focus –“SetFocusOnError” property Auto-scroll maintenance on postback –Ideal for large pages – no code required Simplified Client Script Registration –Page.ClientScript helper methods Client-side Event Callbacks –ICallBackEventHandler interface –Used by TreeView, GridView controls Client Script Goodies

demo Bradley Millington Program Manager Web Platform and Tools

XML Databinding control enables data source binding against XML files –Optional XPath expression to scope results supports binding against –Use “XPath(expression)” statement in templates –“XPathSelect(expression)” selects a node list Combine two to build simple RSS Reader

RSS Reader Using XML Databinding demo Bradley Millington Program Manager Web Platform and Tools

Summary Enormous number of new features in ASP.NET 2.0 –Tons of additional cool features out there… Start exploring ASP.NET 2.0 today!

Resources My Slides and Demos – ASP.NET 2.0 Quickstarts – ASP.NET Forums –