Whats new in ASP.NET 3.5 SP1 Simone Chiaretta Solution Developer, Avanade 24 Ottobre 2008.
-
Upload
jordan-carter -
Category
Documents
-
view
216 -
download
0
Transcript of Whats new in ASP.NET 3.5 SP1 Simone Chiaretta Solution Developer, Avanade 24 Ottobre 2008.
![Page 1: Whats new in ASP.NET 3.5 SP1 Simone Chiaretta Solution Developer, Avanade 24 Ottobre 2008.](https://reader035.fdocuments.in/reader035/viewer/2022070306/55161b9f550346cf6f8b66cd/html5/thumbnails/1.jpg)
What’s new in ASP.NET 3.5 SP1
Simone ChiarettaSolution Developer, Avanadehttp://codeclimber.net.nz
24 Ottobre 2008
![Page 2: Whats new in ASP.NET 3.5 SP1 Simone Chiaretta Solution Developer, Avanade 24 Ottobre 2008.](https://reader035.fdocuments.in/reader035/viewer/2022070306/55161b9f550346cf6f8b66cd/html5/thumbnails/2.jpg)
Sponsors
![Page 3: Whats new in ASP.NET 3.5 SP1 Simone Chiaretta Solution Developer, Avanade 24 Ottobre 2008.](https://reader035.fdocuments.in/reader035/viewer/2022070306/55161b9f550346cf6f8b66cd/html5/thumbnails/3.jpg)
Agenda
► Dynamic Data► Routing► Migliorie JavaScript► What else?
3
![Page 4: Whats new in ASP.NET 3.5 SP1 Simone Chiaretta Solution Developer, Avanade 24 Ottobre 2008.](https://reader035.fdocuments.in/reader035/viewer/2022070306/55161b9f550346cf6f8b66cd/html5/thumbnails/4.jpg)
Dynamic Data aka Scaffolding
![Page 5: Whats new in ASP.NET 3.5 SP1 Simone Chiaretta Solution Developer, Avanade 24 Ottobre 2008.](https://reader035.fdocuments.in/reader035/viewer/2022070306/55161b9f550346cf6f8b66cd/html5/thumbnails/5.jpg)
Dynamic Data
Ruby-like scaffolding
5
![Page 6: Whats new in ASP.NET 3.5 SP1 Simone Chiaretta Solution Developer, Avanade 24 Ottobre 2008.](https://reader035.fdocuments.in/reader035/viewer/2022070306/55161b9f550346cf6f8b66cd/html5/thumbnails/6.jpg)
Dynamic Data
6
► Linq-to-SQL► Linq-to-Entities► Completamente modificabile► Controlli di editing in base al tipo
![Page 7: Whats new in ASP.NET 3.5 SP1 Simone Chiaretta Solution Developer, Avanade 24 Ottobre 2008.](https://reader035.fdocuments.in/reader035/viewer/2022070306/55161b9f550346cf6f8b66cd/html5/thumbnails/7.jpg)
Dynamic Data: how to
7
LINQ-to-Sql designer
“Scommenta” riga di codice
F5 (RUN)
Enjoy
![Page 8: Whats new in ASP.NET 3.5 SP1 Simone Chiaretta Solution Developer, Avanade 24 Ottobre 2008.](https://reader035.fdocuments.in/reader035/viewer/2022070306/55161b9f550346cf6f8b66cd/html5/thumbnails/8.jpg)
[DEMO]
Dynamic Data
![Page 9: Whats new in ASP.NET 3.5 SP1 Simone Chiaretta Solution Developer, Avanade 24 Ottobre 2008.](https://reader035.fdocuments.in/reader035/viewer/2022070306/55161b9f550346cf6f8b66cd/html5/thumbnails/9.jpg)
ASP.NET Routing
![Page 10: Whats new in ASP.NET 3.5 SP1 Simone Chiaretta Solution Developer, Avanade 24 Ottobre 2008.](https://reader035.fdocuments.in/reader035/viewer/2022070306/55161b9f550346cf6f8b66cd/html5/thumbnails/10.jpg)
Routing
► Where do you want to go today?
10
![Page 11: Whats new in ASP.NET 3.5 SP1 Simone Chiaretta Solution Developer, Avanade 24 Ottobre 2008.](https://reader035.fdocuments.in/reader035/viewer/2022070306/55161b9f550346cf6f8b66cd/html5/thumbnails/11.jpg)
Benefici
► SEO Friendly► RESTful► Hackable
11
![Page 12: Whats new in ASP.NET 3.5 SP1 Simone Chiaretta Solution Developer, Avanade 24 Ottobre 2008.](https://reader035.fdocuments.in/reader035/viewer/2022070306/55161b9f550346cf6f8b66cd/html5/thumbnails/12.jpg)
Routing Concepts
► Routes► RouteHandler
12
![Page 13: Whats new in ASP.NET 3.5 SP1 Simone Chiaretta Solution Developer, Avanade 24 Ottobre 2008.](https://reader035.fdocuments.in/reader035/viewer/2022070306/55161b9f550346cf6f8b66cd/html5/thumbnails/13.jpg)
Route
► Contenitore di proprietà– Url– Constraints– Defaults– DataTokens– ...
13
Route myRoute = new Route("archive/{year}/{month}/{day}", //Urlnew EventsRouteHandler() //RouteHandler);
myRoute.Constraints = new RouteValueDictionary(new {
year = @"\d{2}|\d{4}",month = @"\d{1,2}",day = new DateIsValidConstraint()
});
![Page 14: Whats new in ASP.NET 3.5 SP1 Simone Chiaretta Solution Developer, Avanade 24 Ottobre 2008.](https://reader035.fdocuments.in/reader035/viewer/2022070306/55161b9f550346cf6f8b66cd/html5/thumbnails/14.jpg)
Segments -> Url Parameters
14
![Page 15: Whats new in ASP.NET 3.5 SP1 Simone Chiaretta Solution Developer, Avanade 24 Ottobre 2008.](https://reader035.fdocuments.in/reader035/viewer/2022070306/55161b9f550346cf6f8b66cd/html5/thumbnails/15.jpg)
[DEMO]
RouteDebugger
![Page 16: Whats new in ASP.NET 3.5 SP1 Simone Chiaretta Solution Developer, Avanade 24 Ottobre 2008.](https://reader035.fdocuments.in/reader035/viewer/2022070306/55161b9f550346cf6f8b66cd/html5/thumbnails/16.jpg)
RouteHandler
► Gestisce la richiesta– MvcRouteHandler– DynamicDataRouteHandler– Custom
► IRouteHandler– GetHttpHandler
16
![Page 17: Whats new in ASP.NET 3.5 SP1 Simone Chiaretta Solution Developer, Avanade 24 Ottobre 2008.](https://reader035.fdocuments.in/reader035/viewer/2022070306/55161b9f550346cf6f8b66cd/html5/thumbnails/17.jpg)
Routing con WebForm
public class EventsRouteHandler : IRouteHandler{ public IHttpHandler GetHttpHandler(RequestContext requestContext) { IHttpHandler result = BuildManager .CreateInstanceFromVirtualPath("~/Events.aspx",
typeof(Events)) as IHttpHandler; return result; }}
![Page 18: Whats new in ASP.NET 3.5 SP1 Simone Chiaretta Solution Developer, Avanade 24 Ottobre 2008.](https://reader035.fdocuments.in/reader035/viewer/2022070306/55161b9f550346cf6f8b66cd/html5/thumbnails/18.jpg)
[DEMO]
Routing su WebForm
![Page 19: Whats new in ASP.NET 3.5 SP1 Simone Chiaretta Solution Developer, Avanade 24 Ottobre 2008.](https://reader035.fdocuments.in/reader035/viewer/2022070306/55161b9f550346cf6f8b66cd/html5/thumbnails/19.jpg)
Javascript as first class language
![Page 20: Whats new in ASP.NET 3.5 SP1 Simone Chiaretta Solution Developer, Avanade 24 Ottobre 2008.](https://reader035.fdocuments.in/reader035/viewer/2022070306/55161b9f550346cf6f8b66cd/html5/thumbnails/20.jpg)
Supporto in Visual Studio
► Code Formatting► Intellisense per librerie esterne JS► “Ottimizzato” per jQuery
20
![Page 21: Whats new in ASP.NET 3.5 SP1 Simone Chiaretta Solution Developer, Avanade 24 Ottobre 2008.](https://reader035.fdocuments.in/reader035/viewer/2022070306/55161b9f550346cf6f8b66cd/html5/thumbnails/21.jpg)
jQuery
► Facilita la selezione di elementi
//Classic way
document.getElementById("elementId")
//jQuery way
$("#ElementId")
► Selettori CSS3
$("#container .article ul")$("div span:first-child")
![Page 22: Whats new in ASP.NET 3.5 SP1 Simone Chiaretta Solution Developer, Avanade 24 Ottobre 2008.](https://reader035.fdocuments.in/reader035/viewer/2022070306/55161b9f550346cf6f8b66cd/html5/thumbnails/22.jpg)
jQuery - Eventi
► Astrae l’accesso agli eventHandler (crossbrowser)
$(document).ready(function(){alert("I'm loaded, but the images not yet");
});
$(“element”).click(function(){alert(“Clicked”);
});
![Page 23: Whats new in ASP.NET 3.5 SP1 Simone Chiaretta Solution Developer, Avanade 24 Ottobre 2008.](https://reader035.fdocuments.in/reader035/viewer/2022070306/55161b9f550346cf6f8b66cd/html5/thumbnails/23.jpg)
jQuery – Fluent Interface
► Chaining
$(“#elementId").addClass(“wowClass”).fadeIn(“slow”);
► Callbacks
$(“#elementId").slideDown(“slow”, function() { $(this).addClass("wow")});
![Page 24: Whats new in ASP.NET 3.5 SP1 Simone Chiaretta Solution Developer, Avanade 24 Ottobre 2008.](https://reader035.fdocuments.in/reader035/viewer/2022070306/55161b9f550346cf6f8b66cd/html5/thumbnails/24.jpg)
What else?
![Page 25: Whats new in ASP.NET 3.5 SP1 Simone Chiaretta Solution Developer, Avanade 24 Ottobre 2008.](https://reader035.fdocuments.in/reader035/viewer/2022070306/55161b9f550346cf6f8b66cd/html5/thumbnails/25.jpg)
Ma c’è di più
► ASP.NET Ajax Script Combiner► Miglior gestione Back/Forward in AJAX► Intellisense per ASP Classic ► WPF v3► Direct 3D interop► Entity Framework (ask Saltarello’s opinion )
25
![Page 26: Whats new in ASP.NET 3.5 SP1 Simone Chiaretta Solution Developer, Avanade 24 Ottobre 2008.](https://reader035.fdocuments.in/reader035/viewer/2022070306/55161b9f550346cf6f8b66cd/html5/thumbnails/26.jpg)
Maggiori informazioni
► Annuncio di ScottGu:http://tinyurl.com/aspnet35sp1
► Dynamic Datahttp://www.asp.net/dynamicdata/
► jQuery:http://jquery.com/
► jQuery Intellisense: http://blogs.ipona.com/james/
![Page 27: Whats new in ASP.NET 3.5 SP1 Simone Chiaretta Solution Developer, Avanade 24 Ottobre 2008.](https://reader035.fdocuments.in/reader035/viewer/2022070306/55161b9f550346cf6f8b66cd/html5/thumbnails/27.jpg)
Contatti – Simone Chiaretta
► MSN: [email protected]► Blog:
– English: http://codeclimber.net.nz/– Italiano: http://blogs.ugidotnet.org/piyo/
► Twitter: http://twitter.com/simonech
27
![Page 28: Whats new in ASP.NET 3.5 SP1 Simone Chiaretta Solution Developer, Avanade 24 Ottobre 2008.](https://reader035.fdocuments.in/reader035/viewer/2022070306/55161b9f550346cf6f8b66cd/html5/thumbnails/28.jpg)
Q&A
28