I have the Edit working just fine with this code below. Before we get there, you need to get your head straight on the GUI setup.
In the GUI, Binding is set TwoWay, Binding Source is set to the ds, and the BindingSourceMember is set to the column of data.
Here is my code in my Submit:
private void Submit1_ServerClick(object sender, System.EventArgs e)
{
// Get a reference to the Employee business object
Employee oEmployee = (Employee)this.GetBizObj(typeof(Employee));
// Get the persisted Employee record
DataSet dsGetEmployee = (DataSet)Session["dsGetEmployee"];
// Save the DataSet, which causes all two-way bound controls to
// save their data into the employee record
oEmployee.SaveDataSet(dsGetEmployee);
}
That is all it takes.
My GetEmptyDataSet doesn't seem to fucntion, beta .9 on .NET ver1
I have just upgraded to .NET 2003 and reinstalled the MM for it.
HTH
__Stephen
>I am a new to the Mere Mortals framework and I'm very anxious to get familiar with using it in a web form in order to select, insert, update, and delete from SQL Server using stored procedures. Unfortunately this has been a little slow-going.
>
>Does anyone have some sample code or a sample web page that has two-way databound textboxes and "Add", "Update", "Delete" functions using a Mere Mortals business class to update the data?