Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > create a bindable property

Reply
Thread Tools

create a bindable property

 
 
Tommy
Guest
Posts: n/a
 
      11-04-2004
I have subclassed the textbox and added a property to it with the following
code:

'--------------------------------------------------------
Imports System.ComponentModel
Public Class clsTextBox
Inherits System.Web.UI.WebControls.TextBox
Private _iPricePk As Integer
<Bindable(BindableSupport.Yes)> 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
'--------------------------------------------------------

It shows up in the designer and acts like it's getting bound but when i
check the value of the property in my code it still has the default value.

Is there something else that needs to be done to make this actually bind?

Thanks


 
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
WebUserControl's bindable properties not seen in GridView's Bindable Properties list Craig Buchanan ASP .Net Web Controls 0 08-22-2007 04:04 PM
Visible Bindable Property - Eval code help Steve ASP .Net 1 09-30-2006 08:00 AM
bindable property to extend the textbox Tommy ASP .Net Building Controls 0 11-05-2004 03:34 AM
custom control bindable property MrB ASP .Net Building Controls 2 12-31-2003 05:30 PM
server control simple bindable property MrB ASP .Net Building Controls 0 12-23-2003 08:39 PM



Advertisments