HighTechTalks DotNet Forums  

Using Design-Time Attributes with CustomControls

ASP.net ASP.net discussions (microsoft.public.dotnet.framework.aspnet)


Discuss Using Design-Time Attributes with CustomControls in the ASP.net forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Nathan Sokalski
 
Posts: n/a

Default Using Design-Time Attributes with CustomControls - 01-03-2008 , 04:18 PM






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}:Parameter runat=server/>")> _
Public Class Parameter : Inherits System.Web.UI.Control
End Class

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

<NJS:Parameter ID="Parameter1" runat="server"></NJS:Parameter>

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
njsokalski (AT) hotmail (DOT) com
http://www.nathansokalski.com/



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.