Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Jump start: Any Add example
Message
 
To
28/02/2010 13:59:22
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01451594
Message ID:
01451618
Views:
26
Frank,

The code for saving is no different for adding a record vs. editing a record. But here it is:
 protected void btnSave_Click(object sender, EventArgs e)
    {
       
        DataSet dsClient = (DataSet)Session["dsClient"];
        if (this.Save(this.oClient, dsClient, this.oClient.TableName) == mmSaveDataResult.RulesPassed)
            mmMessageDisplay.DisplayMessage("System Confirmation", "Record Successfully Saved",
                "ClientsForm.aspx", 3);
    }
Note that I send the form back to the list form after successfully saving the record. If there were errors the edit form would remain with the error icons displayed.

As far as unbound combos/dropdownlists, I am not sure what you mean. If these controls exist and they are not bound, what is their purpose? If they are bound to the business object then they will be part of the save process.

>Hi Bob,
>
>that's pretty much exactly what I have. Can I see the code for saving? Also how do you handle unbound combos/dropdownlists?
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform