How to inherit User contol to another user control
-
Hi, I hv a user control. I want to use a method that is inside a BasePage which is inherited by System.Web.UI.Page. Bt I cant inherit this page into my usercontrol and use the method. So i tried to create another usercontrol put the method inside it and inherit it to the required userControl. Bt it is giving error. How i can inherit a usercontrol into another. Thank you all for your help.
-
Hi, I hv a user control. I want to use a method that is inside a BasePage which is inherited by System.Web.UI.Page. Bt I cant inherit this page into my usercontrol and use the method. So i tried to create another usercontrol put the method inside it and inherit it to the required userControl. Bt it is giving error. How i can inherit a usercontrol into another. Thank you all for your help.
-
Hi, I hv a user control. I want to use a method that is inside a BasePage which is inherited by System.Web.UI.Page. Bt I cant inherit this page into my usercontrol and use the method. So i tried to create another usercontrol put the method inside it and inherit it to the required userControl. Bt it is giving error. How i can inherit a usercontrol into another. Thank you all for your help.
suzzain wrote:
I want to use a method that is inside a BasePage which is inherited by System.Web.UI.Page. Bt I cant inherit this page into my usercontrol and use the method.
Well, what is that method? You can not access private methods
suzzain wrote:
How i can inherit a usercontrol into another.
public partial class myCalendarControl : UserControl
{
}public partial class myCalendarControl2 : myCalendarControl
{
}Yusuf Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]