久しぶりにASP.NET2.0でAJAXを使ってみると・・・
arinco.master
[asp]
Test
BODY { BACKGROUND-IMAGE: url(/img/arinco.gif); BACKGROUND-REPEAT: no-repeat; background-positin: Left Top }
[/asp]
arinco.master.cs
[csharp] using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls;
public partial class Arinco : System.Web.UI.MasterPage { protected void Page_Load(object sender, EventArgs e) { } }
[/csharp]
これだとエラーが出るが、
arinco.master.cs
[csharp num=1] using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls;
public partial class arinco : System.Web.UI.MasterPage { protected void Page_Load(object sender, EventArgs e) { } }
[/csharp]
こっちはOK。どうも、マスターページのInherits名とマスターページ上のソースでのクラス名が異なると発生する。クラスだから大小文字の違いもだめ。arinco.masterInherits=”arinco” arinco.master.cspublic partial class Arinco : System.Web.UI.MasterPage×arinco.master.cspublic partial class arinco : System.Web.UI.MasterPage○
Comments