D
Danny Ni
Hi,
I have one user control named Schedule.ascx, I want to create another
control which is quite similar to schedule.ascx but differs in some methods
and some UI elements, the way I am doing it right now, I save schedule.ascx
as another name, say schedule2.ascx then I go to code behind and chane the
class name and the methods I like to change. Also modify the UI on ascx
file.
This is working. But there is a problem, evertime I change Scedule.ascx ,
either method and UI , I have to copy it to schedule2.ascx. Is there a
better way to do this? I imagine inheritance could help, just don't know
how to apply to this case.
TIA
I have one user control named Schedule.ascx, I want to create another
control which is quite similar to schedule.ascx but differs in some methods
and some UI elements, the way I am doing it right now, I save schedule.ascx
as another name, say schedule2.ascx then I go to code behind and chane the
class name and the methods I like to change. Also modify the UI on ascx
file.
This is working. But there is a problem, evertime I change Scedule.ascx ,
either method and UI , I have to copy it to schedule2.ascx. Is there a
better way to do this? I imagine inheritance could help, just don't know
how to apply to this case.
TIA