﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WebForms (How do I?)  » BO's in webforms question</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Wed, 13 May 2026 14:39:32 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: BO's in webforms question</title><link>http://forum.strataframe.net/FindPost26192.aspx</link><description>I was just trying to reuse the existing form since it is so big. Using labels would require a new form, with well over 100 fields and lots of tedious layout. Lots of time.&lt;/P&gt;&lt;P&gt;If I can just set those two properties to TRUE or&amp;nbsp;FALSE conditionally I am done.</description><pubDate>Wed, 24 Feb 2010 08:57:13 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>BO's in webforms question</title><link>http://forum.strataframe.net/FindPost4417.aspx</link><description>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.&lt;br&gt;
&lt;br&gt;
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.&lt;br&gt;
&lt;br&gt;
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?</description><pubDate>Wed, 24 Feb 2010 08:57:13 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: BO's in webforms question</title><link>http://forum.strataframe.net/FindPost26191.aspx</link><description>If this is the case, why not bind to a label?  On the web especially, this can make this type of thing far easier to work with.  I am just throwing some ideas out there.</description><pubDate>Wed, 24 Feb 2010 08:53:25 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: BO's in webforms question</title><link>http://forum.strataframe.net/FindPost26188.aspx</link><description>My need is actually for a HR person to be able to review a lengthy application. So the data should not be editable.&lt;/P&gt;&lt;P&gt;I use the same form as when the applicant does data entry for application review by HR staff, this saved (time and budget)having to create a PDF or report of the application, they just go to the app via a "special" link and the form knows to&amp;nbsp;pull up the corret&amp;nbsp;populated&amp;nbsp;application for review and print. So I dont think I can allow the data to be changed.</description><pubDate>Wed, 24 Feb 2010 08:49:43 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: BO's in webforms question</title><link>http://forum.strataframe.net/FindPost26184.aspx</link><description>Just FYI here Keith, we actually never do this online anymore (the read-only states I mean) when developing online apps.  Instead of having two modes, we just let them type away which fires the IsDirtyChanged event which allows us to enable a Save button, etc.  Would this work for you?</description><pubDate>Wed, 24 Feb 2010 08:45:00 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: BO's in webforms question</title><link>http://forum.strataframe.net/FindPost26166.aspx</link><description>&lt;FONT size=2&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;As a workaround (to not having to do the more time consuming workaround above) I want to programatically set the &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;IgnoreManageUIReadOnlyState to True and the Readonly state to True, if the form is in "view mode" which results in the text being very readable, and not able to be changed by a user.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;A SF web textbox renders as System.Web.UI.WebControls.TextBox even though it is MicroFour.StrataFrame.UI.Web.TextBox at design time.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;Conversion attempts so I can get at the SF properties fail:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;CType(ctrl, MicroFour.StrataFrame.UI.Web.TextBox).IgnoreManageUIReadOnlyState = True&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;I want to loop through all the controls on the form and set the properties as above, how to accomplish?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;Setting them manualy in the code behind works, but I have like 100 controls and that is messy for maintenance.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;Me.txtLastName.IgnoreManageUIReadOnlyState = True&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;Me.txtLastName.ReadOnly = True&lt;BR&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description><pubDate>Tue, 23 Feb 2010 11:45:21 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: BO's in webforms question</title><link>http://forum.strataframe.net/FindPost26165.aspx</link><description>bump from 2006 :P&lt;/P&gt;&lt;P&gt;Is this on the radar at all ? I just got a newweb project and this was the first thing they commented on in the demo.</description><pubDate>Tue, 23 Feb 2010 11:02:53 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: BO's in webforms question</title><link>http://forum.strataframe.net/FindPost10794.aspx</link><description>so..&amp;nbsp;will you do the extra rendering that is required to&amp;nbsp;be able to change&amp;nbsp;the disabled&amp;nbsp;color?&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;thanks for the update!</description><pubDate>Fri, 10 Aug 2007 03:06:13 GMT</pubDate><dc:creator>Bastian Töpfer</dc:creator></item><item><title>RE: BO's in webforms question</title><link>http://forum.strataframe.net/FindPost4588.aspx</link><description>Yeah...sorry for the not so cheery answer :P</description><pubDate>Fri, 17 Nov 2006 09:43:05 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: BO's in webforms question</title><link>http://forum.strataframe.net/FindPost4587.aspx</link><description>ewwww thanks.</description><pubDate>Fri, 17 Nov 2006 09:35:05 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: BO's in webforms question</title><link>http://forum.strataframe.net/FindPost4583.aspx</link><description>Well, you are embarking upon the quest that we have battled from the beginning...Microsoft's inconsistent controls. :)&amp;nbsp; 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.&amp;nbsp; Once this is done, just create your own textbox that inherits directly from the .NET control (not ours).&amp;nbsp; Then open up the SF source code, and look at the Web TextBox control.&amp;nbsp; 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.&lt;/P&gt;&lt;P&gt;There is an interface property called BindingEditable.&amp;nbsp; The code inside of here is what managed the readonly state.&amp;nbsp; You will see that the code currently controls the Enabled property.&amp;nbsp; 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.&amp;nbsp; It basically will require us doing some rendering, which we just hve not taken the time to do, when the control is disabled.</description><pubDate>Fri, 17 Nov 2006 09:24:56 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: BO's in webforms question</title><link>http://forum.strataframe.net/FindPost4579.aspx</link><description>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.</description><pubDate>Fri, 17 Nov 2006 09:11:44 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: BO's in webforms question</title><link>http://forum.strataframe.net/FindPost4422.aspx</link><description>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.&amp;nbsp; 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.</description><pubDate>Tue, 14 Nov 2006 11:44:22 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>