Presentation is loading. Please wait.

Presentation is loading. Please wait.

Building Complete Web Application Using ASP.NET 3.5 & Visual Studio 2008 Omar Khan Group Program Manager Visual Studio.

Similar presentations


Presentation on theme: "Building Complete Web Application Using ASP.NET 3.5 & Visual Studio 2008 Omar Khan Group Program Manager Visual Studio."— Presentation transcript:

1 Building Complete Web Application Using ASP.NET 3.5 & Visual Studio 2008 Omar Khan Group Program Manager Visual Studio

2 Today’s Goal Build a web application using: ASP.NET 3.5 Visual Studio 2008 IIS 7.0 Primarily demo and code driven Please ask questions and make it interactive! Provide you with a broad understanding of some of the great new features shipping later this year

3 Multi-Targeting Support in VS 2008 New HTML Designer and CSS Support LINQ and Object Relational Mapping New ASP.NET Data Controls Features Covered (Part 1)

4 JavaScript IntelliSense and Debugging Support ASP.NET AJAX and the AJAX Extenders IIS 7.0 Administration and Security Integration Features Covered (Part 2) IIS 7.0 Extensibility Opportunities

5 VS 2008 Multi-Targeting Support Visual Studio 2008 supports targeting multiple versions of the.NET Framework Choose which Framework version to target when opening or creating an application.NET Framework 2.0.NET Framework 3.0.NET Framework 3.5 Visual Studio IDE only shows feature appropriate for your selected target version Toolbox, Add New Item, Add Reference, IntelliSense

6 Demo VS 2008 Multi-Targeting Support

7 VS 2008 HTML Designer Massively improved HTML designer Same WYSIWYG designer engine as in Expression Web New capabilities: Fast designer/source switching Split view designer Nested master pages Rich CSS editing support Enable better designer/developer workflow

8 Demo Split View Editor CSS Design Support Nested Master Pages

9 Free CSS Web Templates www.oswd.org

10 Working with Data Querying and manipulating data has always been a fundamental part of our jobs as programmers Data formats change, but core needs are the same

11 USE empl REPLACE ALL salary WITH (salary * 1.1) FOR supervises > 0 LIST ALL fname, lname, salary FOR Supervises > 0 Data Access (DBASE circa 1980s) Data querying and manipulation a core part of the programming model experience Certainly had limitations, but it sure was useful

12 SqlCommand cmd = new SqlCommand( @"SELECT fname, lname, salary FROM Empl WHERE supervises > @p0” ); cmd.Parameters.AddWithValue("@po", 0); SqlConnection c = new SqlConnection(…); c.Open(); DataReader people = c.Execute(cmd); while (people.Read()) { string fname = (string) people[“fname”]; string lname = (string) people[“lname”]; double salary = (double) people[“salary”]; } dr.Close(); Data Access APIs (circa late 1990s/early 2000s)

13 Object / Relational Mapping (circa last few years) public class Employee { public string FirstName; public string LastName; public double Salaray; } IList employees = session.CreateCriteria(typeof(Employee)).Add(Expression.Gt(“supervises", 0).List(); foreach(Employee employee in employees) { string fname = employee.FirstName; string lname = employee.LastName; double salary = employee.Salary; } Map relational data to/from objects Cleaner integration of business rules and validation

14 But Challenges Still Remain… How to retrieve non-relational data? XML, RSS, Web Services, REST, AD, Files, etc. How to interact with plain old objects? How do you interact and query custom domain models? How to enable rich data shaping & transformations? Support flexible query composition (that is fast!) How to enable clean code in both a strongly typed and dynamic language world?

15 LINQ Query, Set and Transform Operations for.NET Makes querying data a core programming concept Works with all types and shapes of data Relational databases XML Plain old Objects Works with all.NET languages New VB and C# have integrated language support

16 Demo LINQ, LINQ to SQL

17 Intermission More coming in Part 2: AJAX: JavaScript IntelliSense and Debugging ASP.NET AJAX ASP.NET AJAX Control Extenders IIS7 and ASP.NET Integration Security integration Extensibility Opportunities

18 Q&A Omar Khan Visual Studio omark@microsoft.com

19 Resources Technical Communities, Webcasts, Blogs, Chats & User Groups http://www.microsoft.com/communities/default.mspx http://www.microsoft.com/communities/default.mspx Microsoft Learning and Certification http://www.microsoft.com/learning/default.mspx http://www.microsoft.com/learning/default.mspx Microsoft Developer Network (MSDN) & TechNet http://microsoft.com/msdn http://microsoft.com/technet http://microsoft.com/msdn http://microsoft.com/technet Trial Software and Virtual Labs http://www.microsoft.com/technet/downloads/trials/defa ult.mspx http://www.microsoft.com/technet/downloads/trials/defa ult.mspx New, as a pilot for 2007, the Breakout sessions will be available post event, in the TechEd Video Library, via the My Event page of the website Required slide: Please customize this slide with the resources relevant to your session MSDN Library Knowledge Base Forums MSDN Magazine User Groups Newsgroups E-learning Product Evaluations Videos Webcasts V-labs Blogs MVPs Certification Chats learn support connect subscribe Visit MSDN in the ATE Pavilion and get a FREE 180-day trial of MS Visual Studio Team System!

20 Complete your evaluation on the My Event pages of the website at the CommNet or the Feedback Terminals to win!

21 © 2007 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.


Download ppt "Building Complete Web Application Using ASP.NET 3.5 & Visual Studio 2008 Omar Khan Group Program Manager Visual Studio."

Similar presentations


Ads by Google