D
DougS
I have a ASP.Net 1.1 application where I have several usercontrols, one is
called DetailLine, that I add to a panel dynamically. I am converting the
app to ASP.Net 2.0 and I cant do this anymore. LineType1 inherits from
DetailLine which inherits from UserControl.
1 Dim ucLine As DetailLine ' this line bombs
2 ucLine = CType(Page.LoadControl("..\UserControls\LineType1.ascx"),
DetailLine)
3 pnlDemoLines.Controls.Add(ucLine)
I cant understand why line one bombs in 2.0, why cant i see any of the
classes I created in my Inellisense? Here's the code behind the DetailLine
class:
Partial Class UserControls_DetailLine
Inherits System.Web.UI.UserControl
Private iInvoiceNumber As Integer
Public ReadOnly Property InvoiceNumber() As Integer 'example property
Get
Return iInvoiceNumber
End Get
End Property
End Class
Thanks in advance, DougS
called DetailLine, that I add to a panel dynamically. I am converting the
app to ASP.Net 2.0 and I cant do this anymore. LineType1 inherits from
DetailLine which inherits from UserControl.
1 Dim ucLine As DetailLine ' this line bombs
2 ucLine = CType(Page.LoadControl("..\UserControls\LineType1.ascx"),
DetailLine)
3 pnlDemoLines.Controls.Add(ucLine)
I cant understand why line one bombs in 2.0, why cant i see any of the
classes I created in my Inellisense? Here's the code behind the DetailLine
class:
Partial Class UserControls_DetailLine
Inherits System.Web.UI.UserControl
Private iInvoiceNumber As Integer
Public ReadOnly Property InvoiceNumber() As Integer 'example property
Get
Return iInvoiceNumber
End Get
End Property
End Class
Thanks in advance, DougS