Innovator, coder, geek, speaker, blogger, founder, writer, traveler.
81 followers 0 articles/week
.NET Core SignalR Automatic Reconnects

One of the major differences between old and new .NET Core SignalR is that automatic reconnects are not supported. This means that you need explicitly open a new connection if you lost connection to the server. I managed to write my own implementation that do automatic reconnects on this new version of .NET Core 2 SignalR that works for me. ...

Thu Aug 23, 2018 10:01
Enable Unobtrusive JQuery Validation on Hidden Input Fields in ASP.NET MVC

After release of JQuery Validation Plugin 1.9 hidden elements on form are ignored by default from validation. The problem is that you sometimes need a validation on these hidden fields. However there is a nice workaround. Make sure to put $.validator.setDefaults({ ignore: '' }); not inside $(document).ready This will force client side validation to...

Tue Jun 30, 2015 12:29
How to enable Unobtrusive Client Validation using JQuery in ASP.NET 5

In previous versions of ASP.NET MVC we have enable unobtrusive client side validation using JQuery in simple way by adding two keys in AppSettings of your config file: <configuration> <appSettings> <add key="ClientValidationEnabled" value="true" /> <add key="UnobtrusiveJavaScriptEnabled" value="true" /> </appSettings> </configuration>   In...

Tue Jun 30, 2015 10:09
Getting user-friendly routes with Aurelia in ASP.NET 5

If you want to use Aurelia framework inside ASP.NET 5 application you have a great tutorial from Scott Allen that will help you to jump start. When you finish configuring Aurelia app files to reside in wwwroot folder of your ASP.NET 5 application you can run Aurelia app easily by typing for example http://localhost:5000/index.html The problem is if...

Mon Jun 29, 2015 16:19
LocalDB for Database Integration Testing in ASP.NET 5 project and XUnit.net

If you need to use LocalDb for integration testing your database with EntityFramework or some other ORM this article can help. First, you will need to create .NET core class library project to hold your integration tests: After this you will need to set-up XUnit.net. Check my previous blog post to do that. After this create a folder named Data in...

Mon Mar 23, 2015 13:07
Unit / Integration testing in ASP.NET 5 and Visual Studio 2015 using XUnit.Net

Currently in Visual Studio 2015 CTP 6 MSTests are not supported to test ASP.NET vNext projects. If you create MSTest project you are unable to add a reference to the ASP.NET vNext project. Microsoft will enable support for MSTests for ASP.NET vNext in the next release of Visual Studio. Until then you can only write unit and integration tests using XUnit. First,...

Mon Mar 23, 2015 12:26

Build your own newsfeed

Ready to give it a go?
Start a 14-day trial, no credit card required.

Create account