Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simple data binding to a property
Message
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
00828163
Message ID:
00828490
Views:
17
Sorry, just realized you were doing this for windows forms. I did the following with a web form.

I have the following property:
    Public ReadOnly Property Test() As String
        Get
            Test = "Hello"
        End Get
    End Property
In the HTML of the webform, I added the following to asp:TextBox id="txtTest":
Text="< %# Test %"
Then where applicable, have the following line of code:
Me.txtTest.DataBind()
Thanks,

Vic
Previous
Reply
Map
View

Click here to load this message in the networking platform