Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't bind.......
Message
From
29/01/2004 12:11:09
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00871582
Message ID:
00871866
Views:
22
>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,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform