Showing WebAPI Validation Errors with ExtJS 6

Let’s say you use model validation with ASP.NET WebAPI and you are serving a client side application written in Sencha’s ExtJS.  To show those errors like this: You need to add a ValidationActionFilter to your startup code as follows: [crayon-59280f2786108680682541/] [crayon-59280f2786120335356440/] And then, you can have your ExtJS code do something like the following to display the error: [crayon-59280f2786129676291537/] [crayon-59280f2786131544183704/] And you can run it yourself at the Sencha Fiddle: HTH's … Continue Reading

A Short Video Tutorial on How To Fade in and out with Adobe Premiere

Check out this short 90 second video on how to add audio fade in and fade out on an instructional video.  I do this on my current video I’m making for Pluralsight on ASP.NET Multi-Tenant coming out soon. … Continue Reading

Converting a Controller Method in MVC5 to async

I’m currently working on a Pluralsight course on ASP.NET and I have to admit I’m slow to adopt async methods in my code because it feels a little complex when non-async code is what I’m use to.  I’m feeling like since I’m doing this Pluralsight course I should really show best practices and clearly async controller methods is no doubt a best practice. I’m surprised it was actually so easy.  First, let me show you the code that I had written that is not async that I’m sure you are all familiar with. [crayon-59280f278726b093194832/] All I had to change (besides adding the async name space for Task) was to have speakers return a task with the ToListAsync method and change the signature of the method to return a task. Here is the updated … Continue Reading

Using map instead of a for loop in ECMAScript 5 JavaScript

  Before [crayon-59280f27a9d04405725739/] After [crayon-59280f27a9d1b594509802/] Just Sayin... … Continue Reading


Get every new post delivered to your Inbox

Join other followers: