keyongtech


  keyongtech > dotnet.framework.aspnet.* > dotnet.framework.aspnet.main

 #1  
04-18-06, 12:56 AM
CMM
Can't figure this one out... seems like it should be a no-brainer. Is it
possible to create a UserControl that can act as a container a la the Panel
control?... not a "naming container" or anything fancy.... just a simple
container.

Basically I have a pretty custom table that I'd like to reuse (code-reuse---
always a good thing). Seems to me that it should be as easy as creating a
UserControl and plopping
a placeholder in it for the area where controls can be added by the page
designer. Wouldn't this be much better than MasterPages or things of the
sort for creating truly clean websites?
 #2  
04-18-06, 01:57 AM
Karl Seguin [MVP]
What you are talking about is achieved only via a custom server control -
which, depending on what you are doing, isn't a trivial task.

A good place to start might be:
http://scottonwriting.net/sowblog/posts/355.aspx

But there's really no way to achieve this with a user control - you can add
them to the toolbox :(

Karl
 #3  
04-18-06, 04:35 PM
CMM
Ugh. This sort of thing should be trivial. ASP.NET is like a Lexus luxury
car but with manual cranks to open and close the windows.
Similar Threads
Custom Panel

Hello, I'm trying to create a custom panel in WPF, which would act like a WrapPanel but with a "NewLine" option. So I'm trying to create kinda "StackPanel" which would host...

looking for iview custom xmp panel

In previous incarnations of Expression Media, there used to be a custom iptc annotations file that was installed with iview media pro, such that "status", "event" and...

custom panel control

I am trying to write a custom panel control that I can place objects into at design time, however, i want a header on the top of it which can not contain controls (its a...

Custom panel

I'm having a problem with a custom-painted panel. Upon resize, it's invalidated, and redrawn properly. It's also double-buffered so there's no flicker. When I resize the...


All times are GMT. The time now is 02:19 AM. | Privacy Policy