Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't bind.......
Message
De
29/01/2004 12:11:09
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00871582
Message ID:
00871866
Vues:
21
>Steve,
>
>>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".
>
>I see you've got the business object registration code in the page Load handler. Do you have a line of code in the page that retrieves a State? For example:
>
>
this.oStates.GetState("xxxx");

>
>If so, are you sure the DataTable is named "State" and has a DataColumn named "State"? You can check this in the Watch Window.
>
>Regards,

Kevin,

Absolutely right.. my very stupid mistake of not specifying the DataTable name in the bizob GetDataSet call.


Thanks,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform