ASP.NET MVC 3 in area of Javascript and Ajax improvement
Upcoming SlideShare
Loading in...5
×
 

ASP.NET MVC 3 in area of Javascript and Ajax improvement

on

  • 4,559 views

Let's see improvement in ASP.NET MVC 3 about Javascript and Ajax that covers unobtrusive javascript, JSON binding, and especially we will talk deeper about data validation that everyone must be ...

Let's see improvement in ASP.NET MVC 3 about Javascript and Ajax that covers unobtrusive javascript, JSON binding, and especially we will talk deeper about data validation that everyone must be involved. In ASP.NET MVC 3 we can make validation more simpler and better by Model Validation and Remote Validation.

Speaker: Ajarn Suthep Sangvirotjanaphat
A Microsoft Most Valuable Professional (MVP) award since 2004-present. Founder of the GreatFriends.Biz community which is a small but nice and peaceful .net developer community in Thailand. The GreatFriends.Biz also provides training classes in .NET technologies and OOAD/OOP/UML to more than 1,800 developers in several companies and organizations.

Statistics

Views

Total Views
4,559
Views on SlideShare
4,559
Embed Views
0

Actions

Likes
0
Downloads
123
Comments
1

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

ASP.NET MVC 3 in area of Javascript and Ajax improvement ASP.NET MVC 3 in area of Javascript and Ajax improvement Presentation Transcript

  • Thai Microsoft MVP
    Since 2004
    ASP.NET MVC 3in JavaScript, Ajax, and Model Validation
    Ajarn Suthep Sangvirotjanaphat
    http://greatfriends.biz
    http://facebook.com/suthep
  • Agenda
    2
  • Agenda
    • MVC 3 View slide
    • Razor View slide
    • jQuery
    • Unobtrusive JavaScript
    • Remote Validation
    • JSON Binding
    • Validation Interfaces
    Ajarn Suthep Sangvirotjanaphat
    http://greatfriends.biz
    http://facebook.com/suthep
  • ASP.NET MVC 3
    3rd Generation
    4
  • ASP.NET MVC 3
    5
    We will discover these topics in this session.
  • Razor
    New View engine
    6
  • A little bit about Razor
    7
  • jQuery
    Unobtrusive JavaScript and Client-Side Validation
    8
  • jQuery included in Web Form and MVC by default
    We have the jQuery.js file ready to use when create a new ASP.NET project
    You’ll got jquery1.4.1 in Web Form and MVC 2
    In MVC 3, You’ll got jquery1.4.4 by default.
    Current jQuery version is 1.5.2(release on Mar 31, 2011)
    Do you knowwhich one to use?
    9
  • Adding jQuery in the page
    10
  • Unobtrusive JavaScript
    Best practice in JavaScript programming
    11
  • Unobstrusive JavaScript
    12
  • Unobtrusive JavaScript
    It’s a best practice in JavaScript programming.
    Separation of functionality.
    separate behavior from markup
    13
  • Unobtrusive JavaScript
    Separation of functionality.
    independence from specific framework
    14
  • Client-Side Validation is Enabled by Default in MVC 3
    But if want to change from this…
    15
  • Remote Validation
    While still face to user, turn back to talk with the server mentally.
    16
  • Remote Validation (In Model)
    MVC 3 uses Remote validation feature of jQuery Validate plugin.
    17
    Action name
    Controller name
  • Remote Validation in Action
    18
    11:01 AM
    11:01 AM
    11:02 AM
    11:03 AM
  • Remote Validator (In Controller)
    19
    11:01 AM
  • JSON Binding
    Sending data from client to controller is now more easier
    20
  • JSON Binding
    21
    11:15 AM
  • JSON Binding
    22
  • JSON Binding
    23
  • Validation Interfaces
    24
  • Validation Interfaces
    25
  • GreatFriends.Biz Training
    Public or In-house training class for:OOAD, OOP, ASP.NET MVC, jQuery, VB, C#, Silverlight
    26
    00:01 AM
    00:02 AM
    00:03 AM