help...

  • Thread starter Thread starter Ollie
  • Start date Start date
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
 
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.
 
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.
 
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
 
Back
Top