Creating a control that does not render anything

D

daokfella

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)?

Thanks,

Jason
 
D

daokfella

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.

Any other suggestions would be appreciated.

Jason
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top