Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > Using Design-Time Attributes with CustomControls

Reply
Thread Tools

Using Design-Time Attributes with CustomControls

 
 
Nathan Sokalski
Guest
Posts: n/a
 
      01-03-2008
I have tried to add Design-Time Attributes to my controls, but they do not
seem to be making any difference. Here is an example:

<ToolboxData("<{0}arameter runat=server/>")> _
Public Class Parameter : Inherits System.Web.UI.Control
End Class

When I drag it from the ToolBox, I still get the following:

<NJSarameter ID="Parameter1" runat="server"></NJSarameter>

I know that it is possible to specify what comes up when dragging from the
ToolBox, because many of the controls that come with ASP.NET include
different things (Image is self-closing, Panel includes Height & Width, and
other controls have stuff as well). Can somebody tell me what I'm doing
wrong here? Thanks.
--
Nathan Sokalski

http://www.nathansokalski.com/


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using CustomControls in UserControls Nathan Sokalski ASP .Net Building Controls 0 02-27-2008 09:03 PM
Using CustomControls in UserControls Nathan Sokalski ASP .Net 0 02-27-2008 09:03 PM
Using Design-Time Attributes with CustomControls Nathan Sokalski ASP .Net 0 01-03-2008 09:18 PM
CustomControls inherented from CompositeControl allways have as tag span - how to change this Rolf Welskes ASP .Net 2 10-05-2006 12:56 PM
Styles and CustomControls Reiner Max ASP .Net Building Controls 2 08-15-2004 09:48 AM



Advertisments