Groups | Blog | Home
all groups > asp.net webcontrols > october 2004 >

asp.net webcontrols : Design-Mode WebControls


Mythran
10/21/2004 2:55:36 PM
I have a couple of custom web controls that are on the toolbox. I would
like to make it so these, we placed on a form, do not appear on the form.
They do not write any client-side script so I don't want them visible on the
page at design-time. What I want is sorta like what the OleDbDataAdapter
control does (under the Data tab on the toolbox). Basically, I would like
them placed on some sort of panel that is not part of the page...but still
be compiled (basically, these control server-side code such as security).
The properties should still be modifyable so there has to be something...

Thanks in advance,
Mythran

Victor Garcia Aprea [MVP]
10/22/2004 11:01:25 PM
Hi Mythran,

It seems like you're looking for a component and not a webcontrol... Take a
look at the Component class.

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://clariusconsulting.net/vga
My profile: http://aspnet2.com/mvp.ashx?vga


[quoted text, click to view]

Mythran
10/25/2004 8:45:51 AM
I saw after I posted but hoped to get more insight on it.

Problem with the component is ViewState. I want "most" if not all the
properties and methods of the same webcontrol that we wrote (the
properties/methods of the base web control such as ViewState, Page, et
cetera) on the component...I just do not want it on the page, I want it
where the Components usually go.

Any ideas?

Thanks in advance,
Mythran


[quoted text, click to view]

AddThis Social Bookmark Button