are you missing a using directive or an assembly reference? RRS feed

  • Question

  • User-972290422 posted

    I cannot quite figure out why I am getting the following error.  I am using Visual Studio 2010/ .NET 4.5.

    I could not figure out an option for removing the reference and placing it back, although it does not seem to be much more than an guess...

    Error 1 The type or namespace name 'CommonPage' could not be found (are you missing a using directive or an assembly reference?) C:\Users\slyth_000\Dropbox\IS 3139 - Software Engineering\Jonathan Camilleri\bck\Aristotle\Tabs.aspx.cs 10 34 C:\...\Aristotle\

    // (c) Copyright Microsoft Corporation.
    // This source is subject to the Microsoft Public License.
    // See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL.
    // All other rights reserved.

    using System;
    using System.Web.UI.WebControls;
    using System.Data.Common;

    public partial class Tabs_Tabs : CommonPage
    protected void Page_Load(object sender, EventArgs e)
    CurrentTab.Text = Tabs.ActiveTab.HeaderText;


    public void SaveProfile(object sender, EventArgs e)

    Source of control: http://www.asp.net/ajaxlibrary/ajaxcontroltoolkitsamplesite/tabs/tabs.aspx

    Friday, November 15, 2013 6:45 AM

All replies

  • User1470285101 posted

    public partial class Tabs_Tabs : CommonPage

    try by putting System.Web.UI.Page  instead of CommonPage.

    Hope this helps..

    Friday, November 15, 2013 6:52 AM
  • User-972290422 posted

    It does not exist here.

    Friday, November 15, 2013 6:59 AM
  • User555306248 posted

    In your code

    public partial class Tabs_Tabs : CommonPage

    It is searching for CommonPage class? I sit available in your project?


    Sunday, November 17, 2013 10:19 PM
  • User-1716253493 posted

    Try type your tab control id fisrt, then property name like

    MyTab1.CurrentTab.Text = ...

    Sunday, November 17, 2013 10:41 PM