PC Review


Reply
Thread Tools Rate Thread

Design-Time Attributes are not working

 
 
Nathan Sokalski
Guest
Posts: n/a
 
      5th Jan 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}: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
(E-Mail Removed)
http://www.nathansokalski.com/


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Design-Time Attributes with CustomControls Nathan Sokalski Microsoft ASP .NET 0 3rd Jan 2008 09:18 PM
WebControl left top attributes (design-time) niboew Microsoft ASP .NET 1 13th May 2006 03:06 PM
design time attributes: default enum values D.Z. Simpson Microsoft Dot NET Compact Framework 0 22nd Feb 2006 09:21 PM
please, add design time attributes to my control. Umut Tezduyar Microsoft ASP .NET 0 23rd Nov 2005 06:04 PM
Could you please decorate it with design time attributes? Umut Tezduyar Microsoft ASP .NET 0 22nd Nov 2005 07:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:45 PM.