help...

O

Ollie

It's friday and this has been bugging me all week....

When should be a bit of functionality of a web page be a user control or a
custom control?

Cheers

Ollie Riches
 
K

Kevin Spencer

It all depends on what you just said... Could you translate that into
English?

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
 
K

Kevin Spencer

I consulted a friend, and we think we understand. Let me see if I do, by
reiterating your question:

When should a bit of functionality in an ASPX page be a user control versus
a custom control?

Now, if this is correct, we need to define "user control" and "custom
control" in this context, which I believe you mean UserControls
(System.Web.UI.UserControl) versus System.Web.UI.Control derivatives, right?

The most salient difference between these is the template itself, which
makes it difficult to share UserControls between different apps, as they
have to be loaded by their physical location (URL). So, at the very least,
you should use custom Server Controls when you want to re-use them in
multiple apps.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
 
O

Ollie

Kevin,

Sorry it wasn't clear :)

but your assumption was correct and the answer is exactly the reason I was
looking for.

Cheers

Ollie Riches
 

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
474,431
Messages
2,571,678
Members
48,796
Latest member
Greg L.

Latest Threads

Top