| |
browse.develop.com
Browse.develop.com is a community that was established to collect and
organize valuable web information. Our technical staff have selected and
indexed information and courses that they feel will help you stay
current on best practices across the SDLC.
|
58 Articles match "2012","How To"
| Related DevelopMentor Courses | MORE | | jQuery UI and Windows 8 and Internet Explorer 10 touch screens I recently did a blog post describing how to enable the jQuery UI drag effects. In this post I showed how to get the draggable effect to work on an iPad. What we need to do is take control of the action IE10 performs on touch. Setting its value to 'none' is all we need to do. This will suppress the default IE10 behavior and pass the gestures on to the jQuery event handler. You can toggle the support for touch events using the button to try both with and without support for touch. It turns out this is rather simple. The Problem Solver - Wednesday, October 24, 2012 Testing Difficult Code I recently did 3 videos in my ‘ Using ApprovalTests in.Net’ series that deal with how to test difficult code. These video actually have very little to do with either.Net or ApprovalTests, but they are common issues you run into when unit testing. Seams Testing difficult Code comes down to 2 things: Can I call the Method? Will the Method run to completion? And there are 2 techniques I use to deal with these, that individually are useful, but together are amazing. The idea behind the peel is to break the method up into easy to run pieces. DevelopMentor Courses - Wednesday, March 21, 2012 Brock Allen: Cookie based TempData provider Update: Added security features, how to use the Cookie-based TempData provider, link to GitHub project and info on the NuGet package. It’s basically a way to maintain some state across a TempData is a nice feature in MVC and, if I am not mistaken, was inspired by the Flash module from Ruby on Rails. DevelopMentor Courses - Monday, June 11, 2012 |
45 Articles match "2012","How To"
| The Latest from DevelopMentor | MORE | | Tips for optional parameters to ASP.NET MVC action methods Here’s a quick ASP.NET MVC tip to help you be more productive and write cleaner code. We will see how to leverage C# 4′s optional and default parameters in our action methods for greatly simplifying our code while keeping it fully functional and error free. Often you want to pass data to your controllers based on URL parameters. But notice how ugly and complex the code becomes. Yikes, we went from 1 line of code to many! In fact, the data passed to GetDataAndResult are the same here as for the complex variant. How about that? Michael C. Kennedy's Weblog - Friday, December 21, 2012 Attend my sessions at DevWeek 2013 in London Want to see some of the topics covered in my blog presented live and in-person? Make your way to London in March 2013 to DevWeek ! This is in part due to it’s clean and simple design. In this talk we will explore the powerful features of ASP.NET MVC that allow us to build rich forms that accept user input. Next we’ll add validation and show how we can do both client- and server-side validation using DataAnnotations. Finally, time permitting, we’ll see how client-side programming with JavaScript and jQuery can take this even farther. Michael C. Kennedy's Weblog - Tuesday, December 4, 2012 Introduction to ASP.NET MVC Routes In this short screencast, I’ll show you everything you need to know to get started with ASP.NET MVC routing. You’ll see how default routes in MVC map to controllers and actions. Next you’ll see how to map additional data from query-strings in addition to simple route data. Finally, we’ll create a custom route to pass additional data in a clean, URL based manor. Here’s another screencast, this time on MVC and routing. Filed under: Video Tagged: NET , MVC , Screencasts. Video.NET MVC Screencasts Michael C. Kennedy's Weblog - Monday, December 3, 2012 | -
| The Best from DevelopMentor | MORE | - How to get started with Knockout.js
Once you get into doing more client side JavaScript code with business applications and REST services you are going to run into the question of how to construct the client side HTML required to show the data to the users. Using jQuery Assuming most people are going to be using jQuery on the client you might start with some jQuery code to generate HTML. And in all likelihood the actual HTML that needs to be generated will be quite a bit more complex. The next step people tend to take is using templates. click( function () {. $.getJSON( The Problem Solver - Monday, February 6, 2012 - How to data bind to collections using Knockout.js
I showed to to get started with the awesome Knockout.js In this post I am going to show how easy it is to load a collection of items from a REST service and data bind to the complete collection. To data bind to collections of data Knockout supports the foreach data binding. In the example below I am using an html to display a list of books. The has the data binding attribute so its contents are going to be repeated for each item in the collection being used, books in this case. and controlling updates using Knockout.js Title. The Problem Solver - Wednesday, February 15, 2012 - Improve perceived performance of ASP.NET MVC websites with asynchronous partial views
m sure this would never actually happen to you, but imagine you’re facing this problem just for the sake of exploring the possibilities. :-). Now, you web app is mostly fast and responsive, but there are certain types of data that just bring the whole thing to a grind. This article will cover a technique using ASP.NET MVC partial views, along with just a sprinkle of jQuery, JavaScript, and HTML5 to make your site feel nice and responsive even if you cannot increase the speed of certain operations. m going to show you how to make your site feel faster without speeding it up. Michael C. Kennedy's Weblog - Tuesday, November 13, 2012 - jQuery UI and Windows 8 and Internet Explorer 10 touch screens
I recently did a blog post describing how to enable the jQuery UI drag effects. In this post I showed how to get the draggable effect to work on an iPad. What we need to do is take control of the action IE10 performs on touch. Setting its value to 'none' is all we need to do. This will suppress the default IE10 behavior and pass the gestures on to the jQuery event handler. You can toggle the support for touch events using the button to try both with and without support for touch. It turns out this is rather simple. The Problem Solver - Wednesday, October 24, 2012 - ASP.NET WebAPI Security 2: Identity Architecture
Pedro has beaten me to the punch with a detailed post (and diagram) about the WebAPI hosting architecture. The interesting part for security (amongst other things of course) is the HttpControllerHandler (see Pedro’s diagram) – this is where the host specific representation of an HTTP request gets converted to the WebAPI abstraction (called HttpRequestMessage ). Copies HttpContext.User to the Properties dictionary on the HttpRequestMessage. The key used for that can be found on HttpPropertyKeys.UserPrincipalKey (which resolves to “MS_UserPrincipal”). Why so generic? www.leastprivilege.com - Thursday, March 8, 2012 - Testing Difficult Code
I recently did 3 videos in my ‘ Using ApprovalTests in.Net’ series that deal with how to test difficult code. These video actually have very little to do with either.Net or ApprovalTests, but they are common issues you run into when unit testing. Seams Testing difficult Code comes down to 2 things: Can I call the Method? Will the Method run to completion? And there are 2 techniques I use to deal with these, that individually are useful, but together are amazing. The idea behind the peel is to break the method up into easy to run pieces. DevelopMentor Courses - Wednesday, March 21, 2012 - Identity in.NET 4.5–Part 4: Claims over Kerberos
It also mentions claims and how to enable them. Today I found this article about the new Kerberos features in Windows Server 8. Made me smile ;). IdentityModel www.leastprivilege.com - Saturday, April 7, 2012 %>
| | |