HighTechTalks DotNet Forums  

Inheriting from User Control

ASP.net Building Controls microsoft.public.dotnet.framework.aspnet.buildingcontrols


Discuss Inheriting from User Control in the ASP.net Building Controls forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Vikas Manghani
 
Posts: n/a

Default Inheriting from User Control - 10-14-2007 , 11:28 AM






Hi
I have a base user control that is inherited from System.Web.UI.UserControl.
It has a single button on it. I want to derive few other controls from this
base user control.
I am using Visual Studio 2005 (ASP.Net 2.0). But its not as simple as
setting the right base classes for the code behind class and setting the
Inherits attribute in the aspx page.
If I create the usercontrol as a class in App_Code and inherit my classes
from it, it works. The problem is that if the class is in App_Code I cannot
have a UI to it, i.e. have a button on its surface.
Can anyone tell me how do I do it?

Thanks in advance
Vikas Manghani


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.