﻿<?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?)  » Loading Selective BO in a Website</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Mon, 08 Jun 2026 21:33:40 GMT</lastBuildDate><ttl>20</ttl><item><title>Loading Selective BO in a Website</title><link>http://forum.strataframe.net/FindPost4020.aspx</link><description>Lets say i have 10 Business Objects which i declare in ApplicationBasePage and then i inherit all my pages from ApplicationBasePage, so on load of all pages are&amp;nbsp;ALL the 10 Business Objects loaded &amp;amp; populated or only the selective ones are loaded ?&lt;/P&gt;&lt;P&gt;Basically, on a Item Details page i would not like to load the CustomerBO to have less amount of processing. &lt;/P&gt;&lt;P&gt;Request you to please elobarate a bit on this concept and clarify my concern.</description><pubDate>Wed, 01 Nov 2006 07:42:06 GMT</pubDate><dc:creator>Vikram Saxena</dc:creator></item><item><title>RE: Loading Selective BO in a Website</title><link>http://forum.strataframe.net/FindPost4026.aspx</link><description>Your approach for your base class should work just fine.&amp;nbsp; One option that we use from time to time is a shared class in cases that we need to re-use code from several locations and subclassing is not really an option.&amp;nbsp; In your case you can subclass, but just to show you another option, you can create a shared class that never requires an instance to be created and you can call directly anytime:&lt;/P&gt;&lt;P&gt;Public Notinheritable Class MySharedClass&lt;BR&gt;&lt;BR&gt;'-- Prevent the class from being instantiated&lt;BR&gt;Private Sub New()&lt;BR&gt;End Sub&lt;BR&gt;&lt;BR&gt;'-- A shared sub&lt;BR&gt;Public Shared Sub MySharedMethod()&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '-- Do whatever you need to do&lt;BR&gt;End SUb&lt;BR&gt;&lt;BR&gt;'-- A shared function&lt;BR&gt;Public Shared Function MySharedFunction() As Boolean&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '-- Do some stuff&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Return True&lt;BR&gt;End Sub&lt;BR&gt;&lt;BR&gt;End Class&lt;/P&gt;&lt;P&gt;As for the DLLs required, you will need the following:&lt;/P&gt;&lt;P&gt;MicroFour StrataFrame Base.DLL&lt;BR&gt;MicroFour StrataFrame Business.DLL&lt;BR&gt;MicroFour StrataFrame UI.DLL&lt;/P&gt;&lt;P&gt;and if you are using security you will need:&lt;/P&gt;&lt;P&gt;MicroFour StrataFrame Security.DLL</description><pubDate>Wed, 01 Nov 2006 07:42:06 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Loading Selective BO in a Website</title><link>http://forum.strataframe.net/FindPost4025.aspx</link><description>Hello Trent,&lt;/P&gt;&lt;P&gt;I have another small problem, i have a base class which i use for all my pages in all the projects and have implemented authentication and many more useful functions. now, my base&amp;nbsp;class is very generic and is not modified specifically for any project whereas the SF ApplicationBasePage needs to be modified for each project. &lt;/P&gt;&lt;P&gt;I want best of both the worlds and want to use my base page &amp;amp; SF base page as well. The best way i can think of is inherit my base class from &lt;FONT size=2&gt;MicroFour.StrataFrame.UI.Web.BasePage and inherit my SF ApplicationBase Page from my base class. Do you foresee any issues with this approach, for the deployment perspective, do i just need to put the StrataFrame Base.dll or any more SF Dlls in the bin folder ?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;Thanks in advance&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;Vikram.&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Wed, 01 Nov 2006 03:02:38 GMT</pubDate><dc:creator>Vikram Saxena</dc:creator></item><item><title>RE: Loading Selective BO in a Website</title><link>http://forum.strataframe.net/FindPost4024.aspx</link><description>All of the BOs declared in the ApplicationBasePage would be available on any page that inherits this.&amp;nbsp; But inheriting this page does not add any additional overhead.&amp;nbsp; These business objects are loaded into session variables when the session is started.&amp;nbsp; So this would be nothing more than an object reference if nothing is done on the page.&lt;/P&gt;&lt;P&gt;But if you do not like this approach, you can create another base page and have only those business object which you wish to have available.&amp;nbsp; You can have as many base pages as you would like.</description><pubDate>Tue, 31 Oct 2006 22:06:44 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>