VS2005 - inerited classes in web controls?

R

Rob Meade

Hi all,

I used to be able to create a base class that I would use for my web user
controls, when I've just tried this I get a lot of underlines and build
errors.

Previously I'd just create a new class which inherited:

System.Web.UI.UserControl

And then replace that line in the web user control with the name of my base
class:

ControlBase

For example...

The one thing I have spotted which I think is different is that the web user
controls are using "partial" classes, this would suggest that some where
else in the application is perhaps some more code - maybe this needs to
inherit my base class too?

Any information on this would be handy as I dont seem to be able to inherit
my base class at all in the way I was familiar with.

Cheers

Rob
 
R

Rob Meade

My bad...

I had inherited

System.Web.UI.UserControl

instead of

Inherits System.Web.UI.Page

having changed this all seems well again..

Rob
 

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

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,817
Latest member
AdalbertoT

Latest Threads

Top