Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simple data binding to a property
Message
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
00828163
Message ID:
00828490
Vues:
15
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform