Open GSSBilly opened 5 years ago
[EditorFor 有緩存機制應謹慎使用,並留意 Model State的控制]
https://github.com/houtzai/NetMVCWorkshop1/blob/ec9439a530032986122474a7a6407720b2462b47/NETMVCWorkshop1/Views/Book/Create.cshtml#L21
[所有 Dom 物件請使用 Razor Helper 產生]
https://github.com/houtzai/NetMVCWorkshop1/blob/ec9439a530032986122474a7a6407720b2462b47/NETMVCWorkshop1/Views/Book/Create.cshtml#L68
https://github.com/houtzai/NetMVCWorkshop1/blob/ec9439a530032986122474a7a6407720b2462b47/NETMVCWorkshop1/Views/Book/Create.cshtml#L61
https://github.com/houtzai/NetMVCWorkshop1/blob/ec9439a530032986122474a7a6407720b2462b47/NETMVCWorkshop1/Views/Book/Edit.cshtml#L64
https://github.com/houtzai/NetMVCWorkshop1/blob/ec9439a530032986122474a7a6407720b2462b47/NETMVCWorkshop1/Views/Book/Edit.cshtml#L72
https://github.com/houtzai/NetMVCWorkshop1/blob/ec9439a530032986122474a7a6407720b2462b47/NETMVCWorkshop1/Views/Book/Edit.cshtml#L80
MVC Razor Helper
[EditorFor 有緩存機制應謹慎使用,並留意 Model State的控制]
https://github.com/houtzai/NetMVCWorkshop1/blob/ec9439a530032986122474a7a6407720b2462b47/NETMVCWorkshop1/Views/Book/Create.cshtml#L21