Popular blog tags

用反射在cshtml 生成控件和值的举例子

Published
@foreach(var property inModel.CategoryType.GetType().GetProperties()){@Html.Hidden("Product."+ property.Name, property.GetValue(Model.CategoryType));}http://stackoverflow.com/questions/16180845/how-to-post-complex-models-to-action-using-reflection  .