Creating a control that does not render anything

I have a control that simply registers a script using
Page.ClientScript. It doesn't render anything visually. How can I
design this control so that when dragged to a page designer, it is not
placed on the page, but in the gray area below the designer (similar
to adding a dataset or dataadapter to a page)?

Advertisements

Hmmm, I'm guessing 2.0 no longer utilizes the gray area below the page
for non-rendered controls. I added a SqlDatasource control and it
looks like the old school User Control gray button. If this is the new
standard, is there an existing method for accomplishing the same task?
Or do I need to render all the HTML at design time to look like a gray
button. Right now, I simply render the control name text if
Me.DesignMode.

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!