230 likes | 368 Views
ASP.NET 3.5 New Features. Svetlin Nakov Director Training and Consulting Activities National Academy for Software Development (NASD) http://academy.devbg.org. лектор: Борислава Палева. Agenda. What's New in .NET Framework 3.5? Visual Studio 2008 Enhancements
E N D
ASP.NET 3.5 New Features Svetlin Nakov Director Training and Consulting Activities National Academy for Software Development (NASD) http://academy.devbg.org
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
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)
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
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
LINQ to SQL • LINQ to SQL Designer in VS 2008 NorthwindDataContext db = new NorthwindDataContext(); var customers = from c in db.Customers where c.City == "London" select c; foreach (var cust in customers) Console.WriteLine( "id = {0}, City = {1}", cust.CustomerID, cust.City);
New ASP.NET Data Controls • <asp:ListView> • <asp:DataPager> • <asp:LinqDataSource>
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
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
ASP.NET Dynamic Data Live Demo
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.0 VS 2005 v1.0 ASP.NET 3.5 VS 2008 v3.5 v1.0
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
ASP.NET AJAX and AJAX Control Toolkit Live Demo
Microsoft Silverlight is a cross-browser, cross-platform implementation of .NET for building and delivering the next generation of media experiences & rich interactive applications for the Web.
Silverlight 2.0 Media Rich Content Interactive Applications Rich Internet Applications (RIA) Now in Managed .NET Code http://silverlight.net/Showcase
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)
Silverlight Controls for ASP.NET Live Demo
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
ASP.NET 3.5 New Features Questions?