Open GSSBilly opened 5 years ago
[建議都使用強型別 Model Binding 方式]
https://github.com/boshiang/.NET-MVC-Workshop1/blob/79a504eadf447c8ba6b24d9401f5efdca4a57d39/Workshop2/Views/Book_maintenance/Index.cshtml#L17
[所有 Dom 物件請使用 Razor Helper 產生]
https://github.com/boshiang/.NET-MVC-Workshop1/blob/79a504eadf447c8ba6b24d9401f5efdca4a57d39/Workshop2/Views/Book_maintenance/Index.cshtml#L16
https://github.com/boshiang/.NET-MVC-Workshop1/blob/79a504eadf447c8ba6b24d9401f5efdca4a57d39/Workshop2/Views/Book_maintenance/Index.cshtml#L33-L35
[EditorFor 有緩存機制應謹慎使用,並留意 Model State的控制]
https://github.com/boshiang/.NET-MVC-Workshop1/blob/79a504eadf447c8ba6b24d9401f5efdca4a57d39/Workshop2/Views/Book_maintenance/Insert.cshtml#L29
https://github.com/boshiang/.NET-MVC-Workshop1/blob/79a504eadf447c8ba6b24d9401f5efdca4a57d39/Workshop2/Views/Book_maintenance/Insert.cshtml#L66-L72
[利用 format 或 value 設定]
https://github.com/boshiang/.NET-MVC-Workshop1/blob/79a504eadf447c8ba6b24d9401f5efdca4a57d39/Workshop2/Views/Book_maintenance/Edit.cshtml#L55
MVC Razor Helper
[建議都使用強型別 Model Binding 方式]
https://github.com/boshiang/.NET-MVC-Workshop1/blob/79a504eadf447c8ba6b24d9401f5efdca4a57d39/Workshop2/Views/Book_maintenance/Index.cshtml#L17