Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete with Business Object from a Web Form
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00852521
Message ID:
00856082
Views:
16
Carter,

>With what you pointed out to me, I'd be doing this in several place throughout a page because I'm restoring the DataSet in multiple places, correct. Is there one "proper" place where I should have done this, which would cover the business object use of this DataSet for the life of the page.

>I haven't played around with this yet, but I'm thinking that in the page_load event method after either retrieveing the record into DataSet or recoving it from the session, I should set the business object's current dataset there and be good for the current trip through page's processing whether I'm deleting or saving. Agreed or is there another "proper" place to do this? And of course, I wouldn't be restoring the DataSet from the Session all over the place either, correct?

How you would do this really depends on the logic of the particular page. If it makes sense on a particular page, you can definitely put the code in the Page_Load method.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform