Steps to Setting up a BO in a WebForm
 
Home My Account Forum Try It! Buy It!
About Contact Us Site Map
StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Steps to Setting up a BO in a WebFormExpand / Collapse
Author
Message
Posted 05/07/2008 2:09:03 PM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: StrataFrame Users
Last Login: 07/07/2008 4:22:04 PM
Posts: 37, Visits: 434
Okay...I've searched existing messages and tried to figure this out on my own...with no luck!

What I'd like to know is how to add a SF BO to a webform.

What I think I understand is that I need to create a BO in another project and reference that in my webform project.  I can create the BO - but - don't understand what to do next.  How do I reference that and then how to I add that to the webform so that I can bind textboxes to it?

Can someone help me understand this a bit better?

Thanks - HB

P.S. Looking forward to seeing some of you in Amarillo in July!

Post #16227
Posted 05/07/2008 9:06:03 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 9:36:54 PM
Posts: 4,200, Visits: 4,251
Howard,

Sorry about the slow response on this...I missed this post

You will define the BO in the ApplicationBasepage, and then your web form inherits from an ApplicationBasePage.  You can have as many ApplicationBasePages as you need, but any page that inherits from a base page will see those business objects.

If you will open up the web application sample you will see how these get defined in the ApplicationBasePage of that sample.  It should get you going in the right direction.

Post #16238
Posted 05/08/2008 9:53:53 AM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: StrataFrame Users
Last Login: 07/07/2008 4:22:04 PM
Posts: 37, Visits: 434
No problem being "late."  Any help is greatly appreciated!

Here's the problem...and don't forget...this is my first "real" application using SF.

I've got the ReferralBO in a project called "CommonBusiness" within this solution.  I've added this: to the ApplicationBasePage.cs:

using MicroFour.StrataFrame.Tools;

using System.Web.Configuration;

using CommonBusiness;

When building, I get this error:

The type or namespace name 'CommonBusiness' could not be found...

I've attached screenshots so you can see more of how I've got things setup.

Thanks - again - for trying to help!

Post #16242
Posted 05/08/2008 10:40:35 AM


Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame User

Group: StrataFrame Users
Last Login: Yesterday @ 9:36:18 PM
Posts: 597, Visits: 10,686
Hi Howard.

Have you added a reference to your CommomBusiness project into the PTPlus project references?

Great to see we will meet at the class in July.

Post #16244
Posted 05/08/2008 10:44:27 AM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: StrataFrame Users
Last Login: 07/07/2008 4:22:04 PM
Posts: 37, Visits: 434
That's the step I was missing - thanks!

I'm sure I'll be back here soon with another question...

Post #16245
Posted 05/08/2008 10:59:17 AM


Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame User

Group: StrataFrame Users
Last Login: Yesterday @ 9:36:18 PM
Posts: 597, Visits: 10,686
Glad you got it going.
Post #16246
« 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 12:04am

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.063. 10 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.