Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Requirements for using Control & Property Attributes in ASP.NET

Reply
Thread Tools

Requirements for using Control & Property Attributes in ASP.NET

 
 
Nathan Sokalski
Guest
Posts: n/a
 
      01-08-2008
I am attempting to add Attributes to my ASP.NET Controls & Properties. Here
is what my Controls look like:

<ToolboxData("<{0}arameter 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
System.Web.UI.HtmlTextWriter)
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
http://www.velocityreviews.com/forums/(E-Mail Removed)
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
Setting the value of a Master page's control's property using a property of the Master page Nathan Sokalski ASP .Net 25 03-04-2010 03:42 AM
Requirements for using Control & Property Attributes in ASP.NET Nathan Sokalski ASP .Net Building Controls 0 01-08-2008 03:02 AM
Issue with Control.Attributes Property when adding Javascript ChrisMiddle10@gmail.com ASP .Net 6 10-11-2006 11:26 PM
Issue with Control.Attributes Property when adding Javascript ChrisMiddle10@gmail.com ASP .Net 0 10-11-2006 11:02 PM
Custom Attributes (AttributeTargets.Property) and Property Type Zarko Gajic ASP .Net Building Controls 0 04-07-2005 02:20 PM



Advertisments