StrataFrame Forum

Returning DB Value Best Practice

http://forum.strataframe.net/Topic12741.aspx

By Jerry Carter - 11/16/2007

What is the best way to get a value from a SQL database table in a business object and return it to my web form?
By StrataFrame Team - 11/19/2007

Well, you would declare the business object as a field on the WebForm (or a local variable if that is all you need) and then create a Fill method (one that creates an SqlCommand object can pass it to a FillDataTable() call within the business object) to retrieve the value.  The value would then be available through the same-named property on the business object. 

Hopefully that's what you're looking for.  If not, then give me a few more details on what you're trying to accomplish.