Make sure that the class defined in this code file matches the 'inherits' attribute, and that it ext

Discussion in 'ASP .Net' started by murl, Mar 27, 2007.

  1. murl

    murl Guest

    I want to create a web user control with a base class of 'GridView' so
    I can wrap the needed methods to make rows clickable. However when
    building the project I get the following message:

    "Make sure that the class defined in this code file matches the
    'inherits' attribute, and that it extends the correct base class (e.g.
    Page or UserControl)."

    Markup:
    <%@ Control Language="C#" AutoEventWireup="true"
    CodeFile="MerlinGridView.ascx.cs" Inherits="MerlinGridView" %>

    CodeBehind:
    using System;
    using System.ComponentModel;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;

    public partial class MerlinGridView : GridView
    {
    }

    If I change the base type of this control to be 'UserControl', the
    project builds fine. Any ideas?
    murl, Mar 27, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    4
    Views:
    26,710
    Silvio443
    May 14, 2012
  2. Jindal, Pankaj

    ['ext.IsDOMString', 'ext.SplitQName']

    Jindal, Pankaj, Dec 22, 2004, in forum: Python
    Replies:
    0
    Views:
    310
    Jindal, Pankaj
    Dec 22, 2004
  3. Replies:
    11
    Views:
    594
  4. gec
    Replies:
    1
    Views:
    3,346
    samayamantri
    Jun 26, 2008
  5. murl
    Replies:
    0
    Views:
    202
Loading...

Share This Page