@Master

@Masterディレクティブで、MasterPageの設定を定義する。

@ Master | Microsoft Learn

今回は、余計な属性は削りつつ、VisualStudio使わず作る。

この2つがあればいい。
この2つがあればいい。

この2つがあればいい。
MasterDirective.masterで、

このように書く。
ここでは、CodeFileやInheritsは不要。
Default.aspxで、

こちらも、CodeFileやInheritsは不要。

titleはMasterDirective.masterが優先。
titleはMasterDirective.masterが優先。

titleはMasterDirective.masterが優先。
form内のテキストも。
あとは、ContentPlaceHolderのところがContentに。

Sample/aspnet/MasterPage/MasterPage/src/MasterPage at master · bg1bgst333/Sample · GitHub