<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shiba-yan</author_name>
  <author_url>https://blog.hatena.ne.jp/shiba-yan/</author_url>
  <blog_title>しばやん雑記</blog_title>
  <blog_url>https://blog.shibayan.jp/</blog_url>
  <categories>
    <anon>ASP.NET</anon>
  </categories>
  <description>よく会員登録などのフォームにある、会員規約に同意しますというチェックボックスってありますよね。ASP.NET MVC でチェックされていない時にエラーを表示する場合、Required 属性を使えば対応出来そうだと考える人は多いと思います。 public class FormModel { // チェックされていない時にエラーになることを期待 [Required(ErrorMessage = &quot;会員規約に同意してください&quot;)] public bool Agree { get; set; } } しかし、Required 属性では期待通りに動作しません。理由は ASP.NET MVC の Chec…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.shibayan.jp%2Fentry%2F20130528%2F1369701854&quot; title=&quot;ASP.NET MVC で指定した値が入力されているか検証する属性を作ってみた - しばやん雑記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>http://cdn-ak.f.st-hatena.com/images/fotolife/s/shiba-yan/20130528/20130528094017.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-05-28 09:44:14</published>
  <title>ASP.NET MVC で指定した値が入力されているか検証する属性を作ってみた</title>
  <type>rich</type>
  <url>https://blog.shibayan.jp/entry/20130528/1369701854</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
