General information
Category:
The Mere Mortals .NET Framework
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".
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only