2010 - Basta: ASP.NET Controls für Web Forms und MVC
1. Controls im Web
ASP.NET Controls für Web Forms und MVC
Daniel Fisher (lennybacon) | devcoach.com
2. Lennybacon.com
■ Daniel Fisher | CTO & Software Architect
■
MCP, MCTS, MCPD…
daniel.fisher@devcoach.com
■ Mit-Gründer und Geschäftsführer von devcoach.com
www.devcoach.com
■ Mit-Gründer und Vorstand der
gemeinnützigen www.just community.de e.V.
■ Veranstalter des größten Entwickler & IT-Pro
Community Events in Deutschland: www.nrwconf.de
■ Mit-Gründer und Leiter der
INETA Usergroup Düsseldorf
www.NetUG-NiederRhein.de
■ Mitglied im Microsoft
Community Leader & Insider Program (CLIP)
■ Connected Systems Advisory Board
Expertengruppe für WCF, WF & BizTalk
4. devcoach.com
■ Leistungen
■ Architektur-Beratung
Strukturierter und effizienter zu einer wartbaren Anwendung.
■ Software-Entwicklung
Team-out-of-the-box (Near-shoring)
Objektmodelle und Datenzugriff
Kommunikations-Infrastrukturen
Identitäts- und Berechtigungsmodelle
Web 2.0 und Rich Internet Applikation
■ Coaching & Training
Technologien schneller verstehen und richtig einsetzen.
■ Technologien
■ Microsoft Windows & .NET Framework
ASP.NET, WCF, WF, WPF, Silverlight & Geneva
■ Kunden
■ Versicherung, Finanzindustrie, Mittelstand, Handel, Kommunikation,
Softwarehersteller u.v.a.
Bundesamt für Sicherheit in der Informationstechnologie,
Microsoft, Dresdner Bank…
Project
Experience
Technology
Know-how
devcoach®
5. Agenda
• Web Controls
• What‘s MVC anyway?
• Recap 2006
• Controls for the Microsoft Web Platform
• Summary
6.
7. 7
Is all about Maintainablility!
■ The controls concept achieves reusability for
■ Html mark-up
■ Server-side code
■ Client-side scripts
■ Compiled code that can be reused in any
ASP.NET web application.
13. Concepts
• Nice URLs & Routing
• Process over „just add a Form“
• Loads of naming conventions
• Code, Code, Code
• As strongly typed as possible!
• Once build, forever used…
14. Concepts cont.
• No Code-Behind for ASPXs
• No Postbacks
• No Viewstate
• And last but not least „No controls out of Redmond“!
23. 23
Postback - Lifecycle of a control
Instantiate : Constructor
Initialize : OnInit method and Init Event
Begin Tracking View State : TrackViewState
Load View State : LoadViewState method
Load Postback Data : IPostBackDataHandler.LoadPostdata method
Load: OnLoad method and Load event
Raise Changed Events : IPostBackDataHandler.RaisePostDataChangedEvent method
Raise Postback Event : IPostBackEventHandler.RaisePostBackEvent method
PreRender : OnPreRender method and PreRender event
Save View State : SaveViewState method
Render : Render method
Unload : OnUnload method and Unload event
Dispose : Dispose Method
24. 24
ViewState
■ ViewState is used to track and restore the state
values of controls that would otherwise be lost
■ Base64 encoded - not easily readable, but not
encrypted!
■ What to store
■ Integers
■ Strings
■ Floats
■ Decimals
■ Arrays of the data types stated above