Working in a project I had a problem when using @import with my files .less together with dotless and the LessTransform. I search in the Web and found some solutions but that didn’t work because I had some build errors. So I decide explore the Less.Parse and found the DotLessConfiguration, and did a really easy (3 steps) solution since I knew my folder path (/Content). See below.
Share ASP.NET MVC UserControls in a ClassLibrary is not an obvious task to do. We need to make some registration in the HostingEnvironment and create some classes to search for the file in the shared assembly. This post will explain how to do it step by step, this question was asked in the StackOverflow and you can see my answer here.
In this post I´ll explain how to validate your custom attributes in the client side. There are two ways to do it, one is when your attribute is inheriting from RequiredAttribute, RegularExpressionAttribute, etc, and the other is when your custom attribute is completely new.
The jQuery validation and the jQuery unobtrusive validation are frameworks for client validation. The default implementation uses the en-US culture, that is, number in the format of dot deparating the decimal places and date in the format MM/dd/yyyy. In this post we will customize that according with the culture chosen by the user.
If you already develop an ASP.NET MVC application in your computer that has some specific culture, pt-BR in my case, and after you publish to a server that has a different one, Azure using en-US in my case, you will have some unexpected results when typing date and decimal values. In this post I will show how to have sure that your application will work as expected in any server. We will accept values corresponding to the culture chosen by the user.
One of the most used routine when developing a WEB application is calling an action using jQuery AJAX. This post will show you how to make this task easier and more natural in the format SomeController.SomeAction(parameters).