Svetlin NakovDirector Training and Consulting ActivitiesNational Academy for Software Development (NASD)http://academy.devbg.org
ASP.NET 3.5 New Features
лектор: Борислава Палева
3
Agenda What's New in .NET Framework 3.5? Visual Studio 2008 Enhancements LINQ (Language Integrated Query) New ASP.NET Server Controls ASP.NET 3.5 Extensions
ASP.NET Dynamic Data ASP.NET MVC Framework ASP.NET and AJAX Integration ASP.NET Controls for Silverlight
4
What’s New in .NET Framework 3.5? Language Integrated Queries (LINQ)
Family of technologies that provides querying features for data, from relational to XML
Generate a LINQ object model that provides an object representation of the database
New collections: HashSet<T>
Peer-to-Peer networking framework
Integration of WCF and WWF (Workflow Services)
5
What’s New in Visual Studio 2008? Framework targeting (2.0, 3.0, 3.5)
Full support for LINQ and LINQ to SQL
Integrated ASP.NET AJAX
Improved HTML editor Split source/design view
JavaScript IntelliSense and debugging
CSS manager and debugger
Integrated WPF, WCF, WF designers
Runs a bit slower
6
Visual Studio 2008 Enhancements
7
LINQ and LINQ to SQL Query, set and transform operations for .NET Querying data becomes a core programming
concept Works with all types and shapes of data
Relational databases XML Objects …
Works with all .NET languages C# and VB and have integrated language support
LINQ to SQL Powerful ORM framework
8
LINQ to SQL
LINQ to SQL Designer in VS 2008
NorthwindDataContext db = NorthwindDataContext db = new NorthwindDataContext();new NorthwindDataContext();var customers = from c in db.Customersvar customers = from c in db.Customers where c.City == "London" select c;where c.City == "London" select c;foreach (var cust in customers)foreach (var cust in customers) Console.WriteLine(Console.WriteLine( "id = {0}, City = {1}","id = {0}, City = {1}", cust.CustomerID, cust.City); cust.CustomerID, cust.City);
9
New ASP.NET Data Controls
<asp:ListView>
<asp:DataPager>
<asp:LinqDataSource>
Live Demo
ASP.NET 3.5 Data Controls and LINQ to
SQL
11
ASP.NET 3.5 Extensions ASP.NET MVC Framework
Model View Controller framework for ASP.NET ASP.NET Dynamic Data
Dynamic data controls for displaying/editing table data in ASP.NET
ASP.NET AJAX Browser history support
ADO.NET Data Services Create REST addressable services endpoints for
your data and consume with AJAX and Silverlight Silverlight Controls for ASP.NET
Integrate Silverlight into ASP.NET applications
12
ASP.NET Dynamic Data Create quickly a rich data-driven Web sites
Like in Ruby on Rails and Django (in Python)
Based on LINQ to SQL data model
Dynamically display data based on the data model of the underlying database
Pages are created automatically (zero code)
Based on highly customizable templates
Uses dynamic data fields – user controls that render standard data field types
13
ASP.NET Dynamic Data
Live Demo
ASP.NET Dynamic Data
15
ASP.NET AJAX All AJAX 1.0 features in .NET
3.5 Enhancements to
UpdatePanel
WCF JSON Services
Better Development Experience JavaScript Intellisense
JavaScript Debugging
ASP.NET AJAX Extender Control Support
ASP.NET 2.0VS 2005
v1.0
ASP.NET 3.5VS 2008
v1.0 v3.5
16
ASP.NET AJAX Control Toolkit Separate download from
core ASP.NET AJAX Library of free ASP.NET
AJAX enabled controls Download from http://
ajax.asp.net Developed using a
collaborative source model Licensed under Microsoft
Public License (Ms-PL) All source freely available
~ 40 controls as of today
Live Demo
ASP.NET AJAX and AJAX Control
Toolkit
18
Microsoft Silverlight is a cross-browsercross-browser, cross-platform implementation of .NETcross-platform implementation of .NET for building and delivering the next generation of media experiences & rich interactive applications for the Web.
19
Silverlight 2.0
Media Rich Content
Interactive Applications
Rich Internet Applications (RIA)
Now in Managed .NET Code
http://silverlight.net/Showcase
20
ASP.NET Controls for Silverlight MediaPlayer Control
Play audio (WMA) and video (VMV) in the Web
System.Web.UI.SilverlightControls.MediaPlayer
Silverlight Control Embed the XAML application into a Web page
System.Web.UI.SilverlightControls.Silverlight
Seamlessly integrate ASP.NET with the Silverlight client plug-in Deliver Rich Internet Applications (RIA)
Live Demo
Silverlight Controls for
ASP.NET
22
Additional Information ASP.NET
http://www.asp.net
ASP.NET AJAX http://ajax.asp.net
Data Access and LINQ http://weblogs.asp.net/scottgu
http://www.microsoft.com/uk/msdn/nuggets
Silverlight http://www.silverlight.net
General http://weblogs.asp.net/scottgu
23
ASP.NET 3.5 New Features
Questions?