Returning DB Value Best Practice


Author
Message
StrataFrame Team
S
StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
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.

Jerry Carter
Jerry Carter
StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 reputation)
Group: StrataFrame Users
Posts: 11, Visits: 91
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?
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search