Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2034
  • Last Modified:

Compiler Error Message: CS0260: Missing partial modifier on declaration of type 'Savage.PL.PresentationLayer'; another partial declaration of this type exists

Hi experts,

i go the above error while running this code

using System;
using Savage.BLL;

namespace Savage.PL
{
    public class PresentationLayer : System.Web.UI.Page===============this line errors
    {
        protected System.Web.UI.WebControls.DataGrid myGrid;
     
            private void Page_Load(object sender, System.EventArgs e)
            {
                myGrid.DataSource = new BusinessLogicLayer().GetCustomers();
                myGrid.DataBind();
            }
            override protected void OnInit(EventArgs e)
            {
                InitializeComponent();
                base.OnInit(e);
            }
            private void InitializeComponent()
            {
                this.Load += new System.EventHandler(this.Page_Load);
            }
        }
    }


how do i fix,  thanks
0
SirReadAlot
Asked:
SirReadAlot
1 Solution
 
DarkoLordCommented:
try changing

 public class PresentationLayer

to

 public partial class PresentationLayer
0
 
SirReadAlotAuthor Commented:
thanks
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now