tags:

views:

304

answers:

0

Hi All,

I have an ASP.NET 3.5 web application project in which I'm trying to implement a searchable gridview. I originally started the project as a web site and converted it to a web application. After conversion, my class ended up in the folder Old_App_Code and is called SearchGridView.vb.

Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Text
Imports System.Web
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Drawing.Design


<Assembly: TagPrefix("MyApp.WebControls", "SearchGridView")> 
Namespace MyApp.WebControls
#Region "TemplateColumn"
Public Class NumberColumn
Implements ITemplate

   Public Sub InstantiateIn(ByVal container As System.Web.UI.Control) Implements     System.Web.UI.ITemplate.InstantiateIn

   End Sub
   End Class
   #End Region
   <ToolboxData("<{0}:SearchGridView runat=server></{0}:SearchGridView>")> _
   <ParseChildren(True, "SearchFilters")> _
   Public Class SearchGridView
   Inherits GridView

The class file continues, but this is the first part of it.

Unfortunately, I receive the error message Warning 1 Namespace or type specified in the project-level Imports 'MyApp.WebControls' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases. DielWebProj

In web.config, I included a namespace tag for MyApp.WebControls and I included an imports tag in the .aspx page as well.

Can anyone shed light as to why this error is being raised and how I would remedy it?

Thanks, Sid