Open GSSBilly opened 5 years ago
[所有 Dom 物件請使用 Razor Helper 產生]
https://github.com/g119446316/NET-MVC-Workshop1/blob/9d9fc502e9ddb0b953a968e4abd368b1e30a64f3/workshop/Views/Home/Index.cshtml#L13-L22
https://github.com/g119446316/NET-MVC-Workshop1/blob/9d9fc502e9ddb0b953a968e4abd368b1e30a64f3/workshop/Views/Home/Index.cshtml#L33-L47
[建議都使用強型別 Model Binding 方式]
https://github.com/g119446316/NET-MVC-Workshop1/blob/9d9fc502e9ddb0b953a968e4abd368b1e30a64f3/workshop/Views/Home/Index.cshtml#L13
[EditorFor 有緩存機制應謹慎使用,並留意 Model State的控制]
https://github.com/g119446316/NET-MVC-Workshop1/blob/9d9fc502e9ddb0b953a968e4abd368b1e30a64f3/workshop/Views/Home/Create.cshtml#L21
[無意義]
https://github.com/g119446316/NET-MVC-Workshop1/blob/9d9fc502e9ddb0b953a968e4abd368b1e30a64f3/workshop/Views/Home/Create.cshtml#L15
https://github.com/g119446316/NET-MVC-Workshop1/blob/9d9fc502e9ddb0b953a968e4abd368b1e30a64f3/workshop/Views/Home/Create.cshtml#L102-L104
MVC Razor Helper
[所有 Dom 物件請使用 Razor Helper 產生]
https://github.com/g119446316/NET-MVC-Workshop1/blob/9d9fc502e9ddb0b953a968e4abd368b1e30a64f3/workshop/Views/Home/Index.cshtml#L13-L22
https://github.com/g119446316/NET-MVC-Workshop1/blob/9d9fc502e9ddb0b953a968e4abd368b1e30a64f3/workshop/Views/Home/Index.cshtml#L33-L47