Globalizing Javascript with .NET Resources Using ASP.NET MVC

Sometimes you already have a .NET Resources to translate your application and now you need to use the same messages in Javascript. In this post I will show you how to create an ASP.NET MVC action and return a javascript object containing the messages, all that respecting the culture setted in the Thread.CurrentUICulture.

Continuar lendo “Globalizing Javascript with .NET Resources Using ASP.NET MVC”

Globalizing Javascript with .NET Resources Using ASP.NET MVC

ASP.NET MVC: Client Validation for Custom Attributes

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.

Continuar lendo “ASP.NET MVC: Client Validation for Custom Attributes”

ASP.NET MVC: Client Validation for Custom Attributes

Creating Javascript Proxy to Call ASP.NET MVC Controller Action

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).

Continuar lendo “Creating Javascript Proxy to Call ASP.NET MVC Controller Action”

Creating Javascript Proxy to Call ASP.NET MVC Controller Action