Hello,
I created a VB class that inhertis from System.Web.UI.Page. I set the class
to be MustInherit because I set some subs and functions to be MustOverride.
I created a webform call frmClient. By default, the page inherits from
frmClient class. In the frmClient class, by default, it inherits from
System.Web.UI.Page. So, I changed this to my MustInherit class. I
implemented the subs and functions that my MustInherit class needs to be
implement. I saved every things and run my web application and it works.
This is where the problem started. I closed my webform to work in an other
file. After that. I tried to open again my webform. My IDE threw me an
exception that tell that there are some errors in my file probably due to
the CodeBehind or Inherits attributs of the @Page directive. What I did to
solve my problem is that I removed the MustInherit attribut of my class and
replace MustOverride by Overridable to my subs and functions of that class.
It is only after that, that I have been able to open my frmClient web page.
My question is:
Why I can't implement a MustInherit class in my frmClient Class? I need this
functionality because I want to be sure that certain methods are implemented
through all my webpages that inherit from my MustInherit class.
I must missing something
Marc R.
Thank you