New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add redirect for old post #215

Merged
merged 1 commit into from Jul 27, 2015
Jump to file or symbol
Failed to load files and symbols.
+5 −5
Diff settings

Always

Just for now

@@ -4,7 +4,8 @@ title: "Localizing ASP.NET MVC Validation"
date: 2009-12-07 -0800
comments: true
disqus_identifier: 18664
categories: [aspnetmvc]
redirect_from: "/archive/2009/12/12/localizing-aspnetmvc-validation.aspx"

This comment has been minimized.

@spraints

spraints Jul 28, 2015

What if you try this?

redirect_from: "/archive/2009/12/12/localizing-aspnetmvc-validation.aspx/index.html"
@spraints

spraints Jul 28, 2015

What if you try this?

redirect_from: "/archive/2009/12/12/localizing-aspnetmvc-validation.aspx/index.html"

This comment has been minimized.

@charliesome

charliesome Jul 28, 2015

Another option could be /archive/2009/12/12/localizing-aspnetmvc-validation.aspx.html since Pages will let you drop the .html off the end of the url

@charliesome

charliesome Jul 28, 2015

Another option could be /archive/2009/12/12/localizing-aspnetmvc-validation.aspx.html since Pages will let you drop the .html off the end of the url

This comment has been minimized.

@Haacked

Haacked Jul 28, 2015

Owner

Thanks for the suggestions! I'll try it.

@Haacked

Haacked Jul 28, 2015

Owner

Thanks for the suggestions! I'll try it.

This comment has been minimized.

@Haacked

Haacked Jul 28, 2015

Owner

@charliesome worked like a charm. Thanks!

@Haacked

Haacked Jul 28, 2015

Owner

@charliesome worked like a charm. Thanks!

categories: [aspnetmvc localization validation]
---
This is the fourth post in my series on ASP.NET MVC 2 and its new
features.
@@ -41,7 +42,7 @@ Let’s start with the `ProductViewModel` I used in the last post
public class ProductViewModel {
[Price(MinPrice = 1.99)]
public double Price { get; set; }
[Required]
public string Title { get; set; }
}
@@ -82,10 +83,10 @@ messages from the resources.
```csharp
public class ProductViewModel {
[Required(ErrorMessageResourceType = typeof(Resources),
[Required(ErrorMessageResourceType = typeof(Resources),
ErrorMessageResourceName = "Required")]
public string Title { get; set; }
[Price(MinPrice = 3.99, ErrorMessageResourceType = typeof(Resources),
[Price(MinPrice = 3.99, ErrorMessageResourceType = typeof(Resources),
ErrorMessageResourceName = "PriceIsNotRight")]
public double Price { get; set; }
}
@@ -126,4 +127,3 @@ Tags: [aspnetmvc](http://haacked.com/tags/aspnetmvc/default.aspx),
[validation](http://haacked.com/tags/validation/default.aspx),
[localization](http://haacked.com/tags/localization/default.aspx), [data
annotations](http://haacked.com/tags/data+annotations/default.aspx)