Click here to load reader
Upload
roger-pence
View
296
Download
2
Embed Size (px)
DESCRIPTION
ASNApalooza 2014 lab: Build AVR Web sites faster with dynamic data
Citation preview
We bring IBM i RPG assets forward 1© 2014 by ASNA. All rights reserved.
Dynamic Data with AVR dramatically streamlines the effort to create a data driven ASP.NET website
Build AVR Web sites faster with Dynamic Data
Presented by Tim Daniels
We bring IBM i RPG assets forward 2© 2014 by ASNA. All rights reserved.
Web based CRUD Application
•C - Create
•R – Read
•U –Update
•D - Delete
We bring IBM i RPG assets forward 3© 2014 by ASNA. All rights reserved.
Web application design objectives
1. Standardize data validation• Client Side
• Server Side
2. Standardize data display
3. Provide scaffolding for a dynamic data driven website
4. Use Dynamic data attributes for rapid website development
5. Separation of concerns
6. Reusability
We bring IBM i RPG assets forward 4© 2014 by ASNA. All rights reserved.
• Provides a better user experience• More responsive web page
• Does not require a round trip to the server
• Dynamic Fields automat client side validation• Client side JavaScript is automatically generated
• The Validation Summary control provides formatting of error messages
Client side validation
We bring IBM i RPG assets forward 5© 2014 by ASNA. All rights reserved.
Server side validation
• In a web app it takes place during a post back• When the user request requires server resources
• Use in conjunction with client side validation• Malicious users can easily bypass client side validation
• Client side validation provides a better user experience • A more responsive web page
We bring IBM i RPG assets forward 6© 2014 by ASNA. All rights reserved.
Server side validation
• A server side validation design pattern;• Validation rules defined at the domain object model
level
• Each domain entity contains its own specific data validation rules
• A validation class that is reusable by all domain objects
We bring IBM i RPG assets forward 7© 2014 by ASNA. All rights reserved.
Unit Test• Visual Studio Test Explorer
• Test Validator
Customer Validator Demonstration
We bring IBM i RPG assets forward 8© 2014 by ASNA. All rights reserved.
• Scaffolding • By Default scaffolding mechanism in ASP.NET is turned on
• The benefits of scaffolding• Small amount of code is required to create a data-driven web app
• Data validation is built in, based on data validation attributes
• Customization • Easy to change the way data is displayed and validated
Dynamic Data in ASP.NET
We bring IBM i RPG assets forward 9© 2014 by ASNA. All rights reserved.
• Dynamic Field attribute
Dynamic Data in ASP.NET