473,322 Members | 1,241 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Custom Panel

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?

--
-C. Moya
www.cmoya.com

Apr 18 '06 #1
2 1240
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" <cm*@nospam.com> wrote in message
news:%2****************@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

Apr 18 '06 #2
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.

--
-C. Moya
www.cmoya.com

"Karl Seguin [MVP]" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME
net> wrote in message news:%2****************@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" <cm*@nospam.com> wrote in message
news:%2****************@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


Apr 18 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
by: Dales | last post by:
I have a custom control that builds what we refer to as "Formlets" around some content in a page. These are basically content "wrapper" sections that are tables that have a colored header and...
2
by: Novice | last post by:
I can't seem to get my Custom WebControl to output a button whose click event is associated with a particular method. Here is the code I have right now that contains a panel and there is a...
1
by: Chris Newby | last post by:
I have a custom control that derives from the WebControls.Panel class. In a given ASPX document, I have an instance of my custom control with ID set to "MyControl". Then I put a...
2
by: topdawg147 | last post by:
I'm trying to build a custom control that includes a panel control on it. However, in design-time when I drag a new control (e.g. a textbox, etc) into the panel, it's not added in the panel--just...
3
by: Charles Zhang | last post by:
I want to create a simple server control that does thing like: <Mc:CollapsibleControl TitlePanelID="panel1" BodyPanelID="Panel2"> <asp:Panel ID="panel1"> ... </asp:Panel> <asp:Panel...
0
by: Walter | last post by:
Hi, can someone please help me with my custom control viewstate problem....I haven't slept for hours trying to get this fixed. I am making two custom controls which will be included on a single...
15
by: rizwanahmed24 | last post by:
Hello i have made a custom control. i have placed a panel on it. I want this panel to behave just like the normal panel. The problem i was having is that the panel on my custom control doesnt...
2
by: Olorin | last post by:
I'm encountering some weird behavior with the ClientID property. Let's see if I can give you enough info and if anyone has ideas/suggestions. I'm working in ASP.NET 2.0. I have a Web Project with...
4
by: Jimmy | last post by:
hi, all I'm having a problem with creating custom events in wxpython. I have a class A handling some data processing work and another class B of GUI matter. I need GUI to display information...
2
tranc3d
by: tranc3d | last post by:
Hello, I have a custom panel in my project (this one: http://www.codeproject.com/KB/graphics/fastimagedrawing.aspx) with a custom paint event ( protected override void OnPaint(PaintEventArgs pe)...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.