R
Radu
Hi. I have a class "MyCustomBoundColumn.vb" which looks like this
____________________________________________________________________
Imports System
Imports System.Web.UI.WebControls
Namespace Alex
Public Class MyCustomBoundColumn
Inherits BoundColumn
.............................
End Class
End Namespace
____________________________________________________________________
and another, MyCustomDataGrid.vb, like this:
____________________________________________________________________
Imports System
Imports System.Web.UI.WebControls
Namespace Alex
Public Class MyCustomDataGrid
Inherits DataGrid
.............................
End Class
End Namespace
____________________________________________________________________
I need to use MyCustomDataGrid in an aspx page, therefore:
<%@ Register Tagprefix = "MyTag" Namespace="Alex" Assembly =
"MyCustomDataGrid" %>
and in the form
<MyTag:MyCustomDataGrid runat="server" AutoGenerateColumns="False">
</MyTag:MyCustomDataGrid>
However, I get "MyCustomDataGrid is not a known element", and then a
cascade of other errors. I guess I'm missing something elementary....
but what ?
Thanks.
Alex
____________________________________________________________________
Imports System
Imports System.Web.UI.WebControls
Namespace Alex
Public Class MyCustomBoundColumn
Inherits BoundColumn
.............................
End Class
End Namespace
____________________________________________________________________
and another, MyCustomDataGrid.vb, like this:
____________________________________________________________________
Imports System
Imports System.Web.UI.WebControls
Namespace Alex
Public Class MyCustomDataGrid
Inherits DataGrid
.............................
End Class
End Namespace
____________________________________________________________________
I need to use MyCustomDataGrid in an aspx page, therefore:
<%@ Register Tagprefix = "MyTag" Namespace="Alex" Assembly =
"MyCustomDataGrid" %>
and in the form
<MyTag:MyCustomDataGrid runat="server" AutoGenerateColumns="False">
<MyTag:MyCustomBoundColumn DataField="Column2" etc</MyTag:MyCustomBoundColumn>
</Columns></MyTag:MyCustomBoundColumn>
</MyTag:MyCustomDataGrid>
However, I get "MyCustomDataGrid is not a known element", and then a
cascade of other errors. I guess I'm missing something elementary....
but what ?
Thanks.
Alex