How to share web controls between pages

G

Giraffe

If you have lots of different pages , but they all have a common web
control and you'd like to some how share this code for maintainability,
re-usability reasons, how would one accomplish this in ASP.Net?
 
G

Guest

Giraffe,
It *sounds* like you are describing the functionality of the ASCX
UserControl. Have you looked at this?
Peter
 
G

Giraffe

* Marina Levit said:
If you already have the control written, just put it on every page.

This is OK if I'd like the same control on each page and wanted it
modified specifically within each page.

What I'd actually like is a control to have the same look, feel and
appearance (properties) on each page, and would like therefore some
central mechanism for setting these common characteristics, and I'd also
like some common routine to populate the control with actual data.

So some shared-code method of setting it up and populating it.

Basically for example say I have a datagrid on lots of pages that
display stock information, but the rest of the page is completely
different (specialised) how would this best(properly) implemented.

Ta.
 
G

Giraffe

* Peter Bromberg said:
Giraffe,
It *sounds* like you are describing the functionality of the ASCX
UserControl. Have you looked at this?

See my repsonse above, does this still sound like the UserControl?
 

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

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top