Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
microsoft.public.dotnet.framework.aspnet.buildingcontrols
Requirements for using Control & Property Attributes in ASP.NET
Nathan Sokalski
1/8/2008 3:02:00 AM
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
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
njsokalski@hotmail.com
http://www.nathansok...
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Requirements for using Control & Property Attributes in ASP.NET
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password