Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Inheriting Web UserControl

Status
Not open for further replies.

johnfraser

Programmer
Jul 25, 2007
33
US
Okay so I have a Webuser control which I want to contain the very basics of a common set of controls. Title, sub title, error section (just a label) etc.

I try to do this with the following code:


public class BaseControl: Web.UI.UserControl
{
}

another class that inherits from it:

public classe MyControl: Basecontrol
{
}

The gui elements are in the designer partial class of the BaseControl and I can access the server side controls from the MyControl class but in designer mode and in the application itself I can't see the title and other "BaseClass" html elements.

Can't I do this?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top