Posts Tagged ‘ASP.NET 5’

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 ASP.NET MVC 6 process of enabling client side validation is even more simpler. […]

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 […]

Using classic ADO.NET in ASP.NET 5

For some projects where performance makes a difference we usually use classic ADO.NET approach instead of EntityFramework or some other modern way to communicate with the database. In this post I will try to explain how to fix some common issues with using ADO.NET in ASP.NET vNext. If you have created ASP.NET 5 or ASP.NET […]

Read Config file in ASP.NET 5

ASP.NET vNext has a new configuration system. With the new version of ASP.NET more than one file type is supported. Currently, there are 3 different file types that are supported: Json, Xml and Ini. For example, we can define connection string in config.json file: { “Data”: { “DefaultConnection”: { “ConnectionString”: “Server=(localdb)\\mssqllocaldb;Database=DbName;Trusted_Connection=True;MultipleActiveResultSets=true” } } } You […]