Newbee question on inheriting an user control?

  • Thread starter Thread starter Danny Ni
  • Start date Start date
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
 
You're saying you have to copy it to Schedule2.ascx. But you did'nt mention
Why. Are you recieving an error?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top