ASP.NET MVC4
JASON
 當填寫會員表單時,輸入帳號後,並檢查帳號是否已

存在?
 搭配 Jquery Validate
 「Remote」Attribute
 Constructors
 使用「Remote」Attribute
 Model:
 Implement an action method to support your

Remote attribute
 Result:
 假設有個 Model,現在想要把全部欄位都加上

[Required],然後每新增一個Property也加上
[Required],除了手動加上去外,還有其他辦法嗎?
 Inherit DataAnnotationsModelMetadataProvider


Implements the default model metadata provider for ASP.NET
MVC.



Override 「 CreateMetadata 」Method.
MetadataProvider
ModelMetaData
 How use?
 某表單輸入後按下 submit 後,在 controller 修改了

model 的值,return view 後,網頁上的 textbox 的值
卻不會改變?

submit
 Solution:
 Add ModelState.Clear();
 Q&A