StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Returning DB Value Best PracticeExpand / Collapse
Author
Message
Posted 11/16/2007 3:57:23 PM


StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: StrataFrame Users
Last Login: 10/22/2008 5:51:23 PM
Posts: 8, Visits: 83
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?
Post #12741
Posted 11/19/2007 10:07:24 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 10/21/2008 9:20:58 AM
Posts: 2,685, Visits: 1,887
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.


www.bungie.net
Post #12777
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 10:45am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.125. 15 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.