@PageのMasterPageFile属性に、マスター ページのファイル名を指定する。
style1.cssは、
こう書く。
Master1.masterは、
style1.cssを適用。
Page1.aspxは、
MasterPageFileに、Master1.masterを指定。
style2.cssは、
色が違う。
Master2.masterは、
style2.cssを適用。
Page2.aspxは、
MasterPageFileに、Master2.masterを指定。
![Page1.aspxはこうなるし、](https://cdn-ak.f.st-hatena.com/images/fotolife/B/BG1/20231019/20231019143228.png)
Page1.aspxはこうなるし、
![Page2.aspxは色が違う。](https://cdn-ak.f.st-hatena.com/images/fotolife/B/BG1/20231019/20231019143313.png)
Page2.aspxは色が違う。
Sample/aspnet/PageDirective/MasterPageFile/src/PageDirective at master · bg1bgst333/Sample · GitHub