If I am not mistaken, a user control cannot inherit from BasePage (inherited
from Page class itself) class.
Anyways, to answer your question, here is how you inherit a class in C#:
class BaseClass
{
// Some implementation here
}
class InheritedClass: BaseClass
{
//Implementation for this class
}
It doesn't matter, where the base class is located. If it is In different
namespace, make sure to use fully qualified name of the class.
Regards
Naweed Akram
-----Original Message-----
From: Kumar, Karthick [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 01, 2005 6:13 PM
To: [email protected]
Subject: [AspNetAnyQuestionIsOk] Inheritance in user controls
Hi,
As I need to inherit a BasePage Class (.cs) in a User Control, how do I
achieve it ?.
Thanks.
Regards,
Karthick
Yahoo! Groups Links
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/