Shortcuts

How to add FreeTextBox control on Data dynamic Page

I have a table office with three field index,code,description. I want to change description text field with freetextbox rich text box. So i have customized page for office and i also create a partial class for office. below is code ;

<MetadataType(GetType(OfficeMetaData))> _
Partial Public Class Office

End Class
Public Class OfficeMetaData

Private _OfficeIndex As Object
Public Property OfficeIndex() As Object
Get
Return _OfficeIndex
End Get
Set(ByVal value As Object)
_OfficeIndex = value
End Set
End Property

Private _Code As Object
<StringLength(20)> _
<Required()> _
Public Property Code() As Object
Get
Return _Code
End Get
Set(ByVal value As Object)
_Code = value
End Set
End Property

Private _Description As Object
<StringLength(200)> _
<UIHint("FreeTextBox")> _
Public Property Description() As Object
Get
Return _Description
End Get
Set(ByVal value As Object)
_Description = value
End Set
End Property

I also register the control in the custom page of office. but it does't show the new controll. which step i am missing.

Re: How to add FreeTextBox control on Data dynamic Page

Sorry Dunestar, I haven't done any serious VB in about 5 years, I switched because all the examples were in c# and I was coding in JavaScript and ActionScript and I havent looked back, I hardly ever have to convert a VB sample to c# nowerdays. Sorry [:(]