Last post Oct 27, 2017 06:49 AM by Cathy Zou
Oct 26, 2017 02:18 PM|mikegraz|LINK
I have a web forms project that I am trying to imported into a web application project. I have a custom gridview class that I can't get to work. I have the class define under App_Code.
Public Class Gridview
<add tagPrefix="Alliance" namespace="Alliance.Controls"/>
<Alliance:Gridview ID="allianceGridview" runat="server"></Alliance:Gridview>
The intellisense works fine on a aspx page. The problem is the designer.vb file has a compile error 'Type Global.Alliance.Controls.Gridview is not defined'
If I change the line:
Protected WithEvents allianceGridview As Global.Alliance.Controls.Gridview
Protected WithEvents allianceGridview As Global.myapp.Alliance.Controls.Gridview
The compile error goes away but the aspx page will have a parser error: The base class includes the field 'allianceGridview', but its type (myapp.Alliance.Controls.Gridview) is not compatible with the type of control (Alliance.Controls.Gridview).
Oct 27, 2017 06:49 AM|Cathy Zou|LINK
It seems that you have solved your problem through the following link:
If you have any other problem, welcome to our forum to ask question.