Reuse page functionality on another page

  • Thread starter Thread starter Mel
  • Start date Start date
M

Mel

Can anyone tell me how I would duplicate a page's functionality on
another page? Do I really need to copy all of the controls from the
original pages' markup (aspx) and all of the vb code behind and copy
it to my new page? The downside to that is I need to maintain two
sets of code. Is there a better way?

Example: Say I have 3 drop down boxes (material, thickness, color) in
3 different pages of my site. I want to reuse those controls and the
code behind across multiple pages of my site. I am not sure if I
should copy the controls and reuse the code behind or what is the
preferred method.

(using asp.net 2.0, visual basic, master pages)
 
Can anyone tell me how I would duplicate a page's functionality on
another page?  Do I really need to copy all of the controls from the
original pages' markup (aspx) and all of the vb code behind and copy
it to my new page?  The downside to that is I need to maintain two
sets of code.  Is there a better way?

Example: Say I have 3 drop down boxes (material, thickness, color) in
3 different pages of my site.  I want to reuse those controls and the
code behind across multiple pages of my site.  I am not sure if I
should copy the controls and reuse the code behind or what is the
preferred method.

(using asp.net 2.0, visual basic, master pages)

I am thinking about using user controls. Please reply to this post if
you have any other suggestions.

Link - how to create a user control:
http://asp.net-tutorials.com/user-controls/creating/
 
Back
Top