I added a property to the asp.net textbox. It is set as bindable and i am
able to do so. When i go to read the property the value is not there.
Somehow it isn't persisted on the server. I tried using ViewState() to set
and read the property and it did nothing. Here is the code I am using.
Any help is really appreciated.
Thanks..
Tommy
Imports System.Componen tModel
Imports System.Web.UI
<ListBindable(T rue)> Public Class clsTextBox
Inherits System.Web.UI.W ebControls.Text Box
Private _iPricePk As Integer
<Bindable(True) , _
NotifyParentPro perty(True), _
PersistenceMode (PersistenceMod e.InnerProperty )> _
Public Property iPricePK() As Integer
Get
Return Me._iPricePk
End Get
Set(ByVal Value As Integer)
Me._iPricePk = Value
End Set
End Property
End Class
able to do so. When i go to read the property the value is not there.
Somehow it isn't persisted on the server. I tried using ViewState() to set
and read the property and it did nothing. Here is the code I am using.
Any help is really appreciated.
Thanks..
Tommy
Imports System.Componen tModel
Imports System.Web.UI
<ListBindable(T rue)> Public Class clsTextBox
Inherits System.Web.UI.W ebControls.Text Box
Private _iPricePk As Integer
<Bindable(True) , _
NotifyParentPro perty(True), _
PersistenceMode (PersistenceMod e.InnerProperty )> _
Public Property iPricePK() As Integer
Get
Return Me._iPricePk
End Get
Set(ByVal Value As Integer)
Me._iPricePk = Value
End Set
End Property
End Class
Comment