asp.net - MasterPage.master inheriting from another class that inherits MastPage -
I inherited my master page from a class called MasterParent.
Compilation Error ::
Description: During the compilation, I receive an error as the following: An error during the compilation of a resource required to serve this request Hui. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: ASPNET: Make sure that the class matches this code with the 'inherits' attribute defined in the file, and it extends to the correct base class (such as Page or UserControl) <. p> Source Error:
line 8: namespace PortfolioApplication line 9: {Line 10: public partial class masterpage: MasterParent Line 11: {Line 12:} My code: MasterParent.cs
Using the system; Using System.Collections.Generic; Using System.Linq; Using System.Web; Using System.Web.UI; Using System.Web.UI.WebControls; Namespace PortfolioApplication {public abstract class MasterParent: System.Web.UI.MasterPage {protected void Page_Load (object sender, EventArgs e) {} #region "navigation button" protected void btnPortfolio_Click (object sender, EventArgs e) {Server.Transfer ( "Portfolio.aspx"); } Secure Zero btnHome_Click (Object Sender, EventArgs E) {Server.Transfer ("Default.aspx"); } Secure Zero btnContact_Click (Object Sender, EventArgs E) {Server.Transfer ("Contact.aspx"); } Protected void btnResume_Click (object sender, EventArgs e) {Server.Transfer ("Resume.aspx"); } #endregion}} MasterPage.master.cs
system; Using System.Collections.Generic; Using System.Linq; Using System.Web; Using System.Web.UI; Using System.Web.UI.WebControls; Also: I tried to change my code to master the parents of the class header: public partial class Masterpage: System. EEBUU.masterpage and I get the same error about the heir.
You partial is not modifiers Definition of MasterPage: Masterpiece .
Comments
Post a Comment