Upload
aman-garg
View
2.130
Download
1
Embed Size (px)
Citation preview
Web Forms - I'm still aliveAman Garg
MCT, MCITP, MCSD .NET
Dynamic DataRoutingWeb Form Additions
Predictable Client IDsProgrammable Meta DataBetter control over ViewStatePersist selected rows
Web Deployment
Not Included in this sessionAny UI Performance ImprovementsJS & CSS EnhancementsAjax
Agenda
Theory25%
Demos75%
0% 0%Session Distribution
Distribution
A RAD experience for quickly building a data-driven Web site
Fully Customizable
Quickly build data-driven applications based on LINQ to SQL and Entity Framework Data Model
Automatic validation that is based on constraints defined in the data model
The ability to easily change the markup that is generated for fields in the GridView and DetailsView controls by using field templates that are part of your Dynamic Data project
Dynamic Data
Demo – Dynamic DataCreate an Admin Data-Driven Website
Enabling Dynamic Data for Existing Projects
Declarative DynamicDataManager Control Syntax
Entity Templates
New Field Templates for URLs and E-mail Addresses
Creating Links with the DynamicHyperLink Control
Support for Many-to-Many Relationships (Entity Framework Only)
New Attributes to Control Display and Support Enumerations
Dynamic Data – Additions
Use an existing webpage to enable Dynamic Data
Entity Templates
New Field Templates
Many-to Many Relationship
DemoIn-Depth Dynamic Data
Enables Descriptive URLs
Easy to understand
SEO friendly
The ASP.NET Dynamic Data extends routing
ASP .NET Routing vs URL Rewriting
Routing
Imperative WebForms Routing
Declarative WebForms Routing
Outbound WebForms Routing
Various ways to achieve Routing
Default Values for URL Parameters
URL Patterns
Add Constraints to Routes
Explicitly Disable a URL Pattern
Use Routes.Ignore method to disable a pattern
Routing does not handle requests that map to an existing physical file on the Web server
Security Concerns with ASP .NET Routing
Routing Features
Demo
The ability to set meta tags
More control over view state
Easier ways to work with browser capabilities
More control over generated IDs
The ability to persist selected rows in data controls
More control over rendered HTML in the FormView and ListView controls
Permanently redirecting a Page
Introduction to IIS Express
WebForm Additions
Web Form Additions
Demo
Web Packaging
Web.config transformation
Database deployment
One-click publish for web applications
ASP .NET 4 Web Deployment
Deployment Scenarios
Publish to Test/Staging Environment
Package for Prod Environment
Deploy Database Scripts along with
MS-Build Based Deployment
Package all Web Components
Script IIS-Settings
Configure App Pool
SQL DB
Script Schema and/or data
Deploy Database Scripts along with the web code
IIS7 Import
Web Deployment
Demo
Q & A
http://www.geekswithblogs.net/amangarg
Twitter: @amangarg_sg
Thank You