Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't bind.......
Message
De
28/01/2004 16:44:33
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Can't bind.......
Divers
Thread ID:
00871582
Message ID:
00871582
Vues:
64
I'm trying to set up a very simple test with a bizobj representing a simple States table and a web form with a single textbox control to display the State field of the table. The table simply has 3 fields: StateID, State, and Abbreviation.

I was able to get this to work with a DataGrid just fine, but I was wanting to test the binding to individual controls on a web form. My web form, a subclass of mmBusinessWebPage, has a single textbox control MmTextBox1 with its BindingSource="State" and BindingSourceMember="State".

This is the only code in the page:

protected OakLeaf.MM.Main.Web.UI.WebControls.mmTextBox MmTextBox1;
protected States oStates;

private void Page_Load(object sender, System.EventArgs e)
{
this.oStates = (States) this.RegisterBizObj(new States());
}

Every time I try to run this page, I get "Can't bind MmTextBox1 to State.State".
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform