Cannot Access Base Members when Inheriting WebControl

T

TJO

I am having difficulty understanding why I cannot access my base .ascx
class members from my inherited class.

I create a base .ascx control and add a method.

public partial class myWebControlBase : System.Web.UI.UserControl
{
public virtual void _foo(){
}
}
I then create another ascx control by extending the base class:

public partial class ResumeCapture_ResumeCaptureBase : myWebControlBase

{

}

the compiler is telling me _foo() does not exists when I access it from
the HTML portion of my control. Nor does itellisense show the method.


Is inheritance of webcontrols handled differently in 2.0 than 1.0 or
1.1?
 
J

Jose Rodriguez

Tj, my first thought is that your base class must reside in the App_Code sub
directory otherwise it won't be accessible...hth

Jose
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top