B
bill
What's up with inheritance in code behind? Is it reliable, or should I skip
it and forget about using inheritance in web forms until they get it right?
I'm using VB.NET 2005
I have a web form named wfBase.aspx.
In the code behind I have
Partial Public Class wfBase
Inherits System.Web.UI.Page
and I have some public methods and variables.
I have another form named wfForm.aspx. In this code behind I have
Imports wfBase 'is this necessary?
Partial Class wfForm
Inherits wfBase
Everything works great.
Suddenly it stops working, and there are errors that wfBase contains no
public members.
I have to close Visual Studio and open it again, and then it works fine for
awhile, and then it happens again. Sometimes I only have to close the
solution and open it again. This is very aggravating.
Is there something I could be doing wrong?
Thanks
Bill
it and forget about using inheritance in web forms until they get it right?
I'm using VB.NET 2005
I have a web form named wfBase.aspx.
In the code behind I have
Partial Public Class wfBase
Inherits System.Web.UI.Page
and I have some public methods and variables.
I have another form named wfForm.aspx. In this code behind I have
Imports wfBase 'is this necessary?
Partial Class wfForm
Inherits wfBase
Everything works great.
Suddenly it stops working, and there are errors that wfBase contains no
public members.
I have to close Visual Studio and open it again, and then it works fine for
awhile, and then it happens again. Sometimes I only have to close the
solution and open it again. This is very aggravating.
Is there something I could be doing wrong?
Thanks
Bill