Creating and Configuring Models Models create කිරීම සහ config කර ගැනීම

Slides:



Advertisements
Similar presentations
ColdFusion 8 Ajax Features Overview Scott Bennett
Advertisements

Microsoft Access Course 1. Introduction to the user interface.
1 Configuring Internet- related services (April 22, 2015) © Abdou Illia, Spring 2015.
A Good UX How To Make It Happen EAE 4023, UNITE 2010 Tuesday, 9:15 am May 25 th 2010 Niels Gebauer Director Client Tools Consultancy
BY CHRIS ANDERSON Creating a MIDI Generator Program.
UNIT-V The MVC architecture and Struts Framework.
Form Handling, Validation and Functions. Form Handling Forms are a graphical user interfaces (GUIs) that enables the interaction between users and servers.
Windows.Net Programming Series Preview. Course Schedule CourseDate Microsoft.Net Fundamentals 01/13/2014 Microsoft Windows/Web Fundamentals 01/20/2014.
Ori Calvo, 2010 “If people want to have maximum reach across *all* devices then HTML will provide the broadest reach” Scott Guthrie,
A Scalable Application Architecture for composing News Portals on the Internet Serpil TOK, Zeki BAYRAM. Eastern MediterraneanUniversity Famagusta Famagusta.
1 Module One Recruiting Year
Part 06 – A More Complex Data Model Entity Framework and MVC NTPCUG Tom Perkins.
ASP.NET 2.0 Chapter 5 Advanced Web Controls. ASP.NET 2.0, Third Edition2 Objectives.
ASP.NET + jQuery + Odata = Goodness Stephen Walther Superexpert.com
Module 14: WCF Send Adapters. Overview Lesson 1: Introduction to WCF Send Adapters Lesson 2: Consuming a Web Service Lesson 3: Consuming Services from.
Creating Web Applications Using ASP.NET Chapter Microsoft Visual Basic.NET: Reloaded 1.
ASP.NET Web Server Controls Basic Web Server Controls.
Learningcomputer.com SQL Server 2008 Configuration Manager.
JQuery UI. Slide 2 Introduction From the jQuery UI Home Page jQuery UI is a curated set of user interface interactions, effects, widgets, and themes built.
WEB PROGRAMMING – ASP.NET Presented By – Kiran Kumar Gunna.
JSF Framework Java Server Faces Presented by Songkran Totiya (6/10/2014)
ASP NET MVC Soup-to-Nuts Peter
Exploring ASP.NET MVC 4.  Các mô hình phát triển Web ASP.Net  Kiến trúc phát triển ứng dụng Web MVC  Khám phá ASP.Net MVC  Tổ chức, Cấu hình dự án.
Getting started with ASP.NET MVC Dhananjay
What’s new in ASP.NET 4.0 ?. Agenda Changes to Core Services  Extensible Output Caching  Shrinking Session State  Performance Monitoring  Permanently.
ICM – API Server & Forms Gary Ratcliffe.
Module 1: Introduction to Microsoft SQL Server Reporting Services
//liveVirtualacademy2011/ What’s New for ASP.NET 4.5 and Web Development in Visual Studio 11 Developer Preview Γιώργος Καπνιάς MVP, MCT, MCDP, MCDBA, MCTS,
CS520 Web Programming Spring – Web MVC Chengyu Sun California State University, Los Angeles.
2440: 141 Web Site Administration Web Forms Instructor: Joseph Nattey.
Web Application Web Application are programs that can be executed either on a Web server or in a Web browser. An Online store accessed through a browser.
MIS Professor Sandvig MIS 324 Professor Sandvig
Quiz # 02 Design a data type Date to hold date
ASP.NET Razor Engine SoftUni Team ASP.NET MVC Introduction
Haritha Dasari Josue Balandrano Coronel -
Windows Communication Foundation and Web Services
CO6025 Advanced Programming
IBM AS 400 online Training in Hyderabad
Social Media And Global Computing Managing MVC with Model Validation
MIS Professor Sandvig MIS 324 Professor Sandvig
02 | Developing ASP.NET MVC 4 Models
Displaying Form Validation Info
Chapter 23 – ASP.NET Outline 23.1 Introduction NET Overview
Social Media And Global Computing Managing MVC with Model Validation
Introduction to Programming with Python
Introduction to Programming with Python
Introduction to Programming with Python
Introduction to Programming with Python
IS 4506 Server Configuration (HTTP Server)
Configuring Internet-related services
Customizing Views Views Customize කර ගැනීම
Introduction to ASP.NET MVC ASP.NET MVC පෙරවදන
Introduction to Authentication Authentication සදහා හැදින්වීම
මුහම්මද් සල්ලල්ලාහු අලෙයිහි වසල්ලම්
Basics of MVC MVC වල මුලික කොටස්
Microsoft Azure Fundamentals Microsoft Azure මූලික දැනුම
Common Origination and Disbursement (COD) System Update
Using Visual Studio Visual Studio භාවිතය
Customizing Controllers Controllers Customizing කර ගැනීම
Serpil TOK, Zeki BAYRAM. Eastern MediterraneanUniversity Famagusta
05 | Customizing Views Jon Galloway | Development Platform Evangelist
HTML5 Form Types – Newer Available Fields
Introduction to Programming with Python
Introduction to Programming with Python
Microsoft Azure Fundamentals Microsoft Azure මූලික දැනුම
Introduction to Programming with Python
Introduction to Programming with Python
ASP.NET MVC Web Development
ASP.NET MVC Imran Rashid CTO at ManiWeber Technologies.
#01# ASP.NET Core Overview Design by: TEDU Trainer: Bach Ngoc Toan
Presentation transcript:

Creating and Configuring Models Models create කිරීම සහ config කර ගැනීම Module 2 Omal Perera | http://www.windowsgeek.lk @omalperera Microsoft Virtual Academy

Module Overview Model එකක් කියන්නේ මොකද්ද? Model එකක් create කර ගැනීම Advanced Model Concepts Microsoft Virtual Academy

Model එකක් යනු කුමක්ද? Module 2 Microsoft Virtual Academy

What is a Model? සරලව Model එකක් කියන්නේ class එකක්

Model එකක් create කර ගැනීම Module 2 Microsoft Virtual Academy

Adding a Model 20486A 03: Developing ASP.NET MVC 4 Models (More notes on the next slide)

Model එක use කරන්නේ කවුරුන්ද? User ඔවුන් interact වෙන්නේ මොනවත් සමගද? MVC Input controls Display formatting Validation

Models සාදා ගැනීම Attributes Available Attributes “Decorate” properties Available Attributes DataTypeAttribute DisplayAttribute Validation RequiredAttribute StringLengthAttribute RegularExpressionAttribute CompareAttribute

Data Types Validation Input controls Available Data Types HTML5 CreditCard Currency EmailAddress Password Url

Adding DataType Attribute 03: Developing ASP.NET MVC 4 Models Demonstrate adding attribute & resulting HTML Adding DataType Attribute (More notes on the next slide)

Prompts Display Attribute Name Display prompt and header

DisplayFormat Uses a .NET format string {0:C} {0:0.00} {0:d-m-yy} Currency {0:0.00} Always use two decimal places .42 displays as 0.42 42 displays as 42.00 {0:d-m-yy} Single digit day & month, two digit year June 10th, 2014 displays as 10-6-14 http://msdn.microsoft.com/en- us/library/system.string.format(v=vs.110).aspx

Controlling Display 20486A 03: Developing ASP.NET MVC 4 Models Demonstrate adding attribute & resulting HTML Controlling Display (More notes on the next slide)

Adding Validation Attributes Error Message Required StringLength MinLength MaxLength RegularExpression Range Error Message {0} will use the display name "{0} must be provided"

Validation එක සිද්ධ වෙන්නේ කොහෙදීද? Server එකේදී ModelState.IsValid property Client මත දී jQuery unobtrusive validation අවශ්‍ය වේ

Adding Validation

Advanced Model Concepts Module 2 Microsoft Virtual Academy

Models වලින් කාර්ය පහසු කරන්නේ කෙසේද? 20486A Models වලින් කාර්ය පහසු කරන්නේ කෙසේද? 03: Developing ASP.NET MVC 4 Models Automatic UI creation Model Binding Controllers are classes Actions are methods Methods take parameters MVC will convert forms to parameters

Advanced Model Concepts Custom Validation Attributes built-in attributes ඔබට අවශ්‍ය ලෙස නොමැති විට Integrates with MVC View Model domain and user interface අතර වෙනස Complex data Dropdown lists Unrelated objects