_______________ _______________ _______________ _______________ ________
Imports System
Imports System.Web.UI.W ebControls
Namespace Alex
Public Class MyCustomBoundCo lumn
Inherits BoundColumn
............... ..............
End Class
End Namespace
_______________ _______________ _______________ _______________ ________
and another, MyCustomDataGri d.vb, like this:
_______________ _______________ _______________ _______________ ________
Imports System
Imports System.Web.UI.W ebControls
Namespace Alex
Public Class MyCustomDataGri d
Inherits DataGrid
............... ..............
End Class
End Namespace
_______________ _______________ _______________ _______________ ________
I need to use MyCustomDataGri d in an aspx page, therefore:
<%@ Register Tagprefix = "MyTag" Namespace="Alex " Assembly =
"MyCustomDataGr id" %>
and in the form
<MyTag:MyCustom DataGrid runat="server" AutoGenerateCol umns="False">
<Columns>
<MyTag:MyCustom BoundColumn DataField="Colu mn1" etc
></MyTag:MyCustomB oundColumn><MyTag:MyCustom BoundColumn DataField="Colu mn2" etc
></MyTag:MyCustomB oundColumn></Columns>
</MyTag:MyCustomD ataGrid>
However, I get "MyCustomDataGr id is not a known element", and then a
cascade of other errors. I guess I'm missing something elementary....
but what ?
Thanks.
Alex