- Where Developers Learn, Share, & Build Careers
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 the square this code matches the defined file 'inherits' attribute, and it extends the correct base class (eg Page or UserControl) that <. 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
using the 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