471,092 Members | 1,030 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,092 software developers and data experts.

Requirements for using Control & Property Attributes in ASP.NET

I am attempting to add Attributes to my ASP.NET Controls & Properties. Here
is what my Controls look like:

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

<Description("My Property Description")_
Public WriteOnly Property Name() As String
Set(ByVal value As String)
Me._name = value
End Set
End Property

Protected Overrides Sub Render(ByVal writer As
End Sub
End Class

Neither of these Attributes are showing when I use the Control. After a ton
of searching the web for help (most of the pages I found showed nothing but
what I already have), the only thing I found that told me anything was
something about certain namespaces needing to be referenced and imported.
Even after adding these namespaces to my references and imports, they still
did nothing. Could somebody tell me ALL of the requirements necessary for
the attributes to take effect (namespaces that need referenced and/or
imported, settings that must be set, etc.)? Thanks.
Nathan Sokalski
Jan 8 '08 #1
0 802

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by James Geurts | last post: by
1 post views Thread by ANDRES BECERRA | last post: by
7 posts views Thread by Buddy Ackerman | last post: by
3 posts views Thread by Marty McFly | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.