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



BO's in webforms questionExpand / Collapse
Author
Message
Posted 11/14/2006 11:00:00 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: Today @ 1:10:17 PM
Posts: 658, Visits: 27,056
So I understand that there is no dropping of BO's on webforms, you create the BO reference in your ApplicationBasePage and it available to the entire website. Check.

Does that mean I need to create many BO's if I need them populated differently? For instance I have a BO that contains codes used to fill all my applications dropdowns, I have a BO on each form that calls a fill specific for the proper contents of the BO based on a "codetype" field.

So the generic question is this, since BO's essentially don't get instantiated into individual objects on a webform where I can call different fill methods, is the answer to make many BO's specified to their task, or am I on the wrong path?
Post #4417
Posted 11/14/2006 11:44:22 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 11:24:42 AM
Posts: 2,686, Visits: 1,889
No, just reuse the business object that you declare... the good thing about a web solution is that you will only have one page loaded at a time for the person.  Also, any business object that you declare there will get stored in a session variable, so you don't want to go hog wild on the business objects that you define within the ApplicationBasePage.


www.bungie.net
Post #4422
Posted 11/17/2006 9:11:44 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: Today @ 1:10:17 PM
Posts: 658, Visits: 27,056
Can you please enlighten me as to how I might make the web textbox control either have a darker type or not have as dark a grey background when the BO is in read-only mode. It is very hard to read. I looked in the source, but didn't see the spot. I know I don't want to touch the source, once I know what to change I will create my own control and inherit your textbox.
Post #4579
Posted 11/17/2006 9:24:56 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 1:19:14 PM
Posts: 4,801, Visits: 4,769
Well, you are embarking upon the quest that we have battled from the beginning...Microsoft's inconsistent controls.   Just do this, drop on a text box and play with the properties (Backcolor, ForeColor, etc) until you get the look you are going for.  Once this is done, just create your own textbox that inherits directly from the .NET control (not ours).  Then open up the SF source code, and look at the Web TextBox control.  Copy all of the guts out of this thing...in fact, you can copy this whole class and just rename the class to your new class...obviously in a different project than the SF source.

There is an interface property called BindingEditable.  The code inside of here is what managed the readonly state.  You will see that the code currently controls the Enabled property.  Place your code here...just keep in mind that the standard .NET control does not let you control the disabled background and foreground colors..thus the problem we have dealt with.  It basically will require us doing some rendering, which we just hve not taken the time to do, when the control is disabled.

Post #4583
Posted 11/17/2006 9:35:05 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: Today @ 1:10:17 PM
Posts: 658, Visits: 27,056
ewwww thanks.
Post #4587
Posted 11/17/2006 9:43:05 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 1:19:14 PM
Posts: 4,801, Visits: 4,769
Yeah...sorry for the not so cheery answer
Post #4588
Posted 08/10/2007 3:06:13 AM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: StrataFrame Users
Last Login: 08/30/2008 7:14:27 AM
Posts: 32, Visits: 107
so.. will you do the extra rendering that is required to be able to change the disabled color?

I know this is not your top priority, but so far every client asked me if I can change the disabled color, because it is very hard to read on a lot of screens.

thanks for the update!

Post #10794
« 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 1:33pm

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.109. 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.