O
Oskar Lundgren
I have been trying for hours to get this thing working, but since I'm
new to asp.net the solution may be simple. This is my problem:
I have created a class that represents a custom web control which
looks like this:
Namespace WebControls
Public Class TextField
Inherits System.Web.UI.WebControls.TextBox
Public Property FieldName() As String
Get
Return FieldName
End Get
Set(ByVal Value As String)
FieldName = Value
End Set
End Property
End Class
End Namespace
I successfully build my solution, add the web control to the toolbox
and add an instance of it to a web form. But, when I select this
instance, the property FieldName (declared above) does not show up in
the property browser. Why? All properties of the TextBox class show.
new to asp.net the solution may be simple. This is my problem:
I have created a class that represents a custom web control which
looks like this:
Namespace WebControls
Public Class TextField
Inherits System.Web.UI.WebControls.TextBox
Public Property FieldName() As String
Get
Return FieldName
End Get
Set(ByVal Value As String)
FieldName = Value
End Set
End Property
End Class
End Namespace
I successfully build my solution, add the web control to the toolbox
and add an instance of it to a web form. But, when I select this
instance, the property FieldName (declared above) does not show up in
the property browser. Why? All properties of the TextBox class show.