Reuse page functionality on another page

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)
 
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)

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/
 

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

Members online

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,738
Latest member
JinaMacvit

Latest Threads

Top