Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   Custom Panel (http://www.velocityreviews.com/forums/t152331-custom-panel.html)

CMM 04-18-2006 12:56 AM

Custom Panel
 
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?

--
-C. Moya
www.cmoya.com




Karl Seguin [MVP] 04-18-2006 01:57 AM

Re: Custom Panel
 
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

--
http://www.openmymind.net/



"CMM" <cmm@nospam.com> wrote in message
news:%236PM1LoYGHA.4168@TK2MSFTNGP05.phx.gbl...
> 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?
>
> --
> -C. Moya
> www.cmoya.com
>
>
>




CMM 04-18-2006 04:35 PM

Re: Custom Panel
 
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.

--
-C. Moya
www.cmoya.com

"Karl Seguin [MVP]" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME
net> wrote in message news:%23TUuIuoYGHA.3848@TK2MSFTNGP05.phx.gbl...
> 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
>
> --
> http://www.openmymind.net/
>
>
>
> "CMM" <cmm@nospam.com> wrote in message
> news:%236PM1LoYGHA.4168@TK2MSFTNGP05.phx.gbl...
>> 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?
>>
>> --
>> -C. Moya
>> www.cmoya.com
>>
>>
>>

>
>





All times are GMT. The time now is 08:38 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57