﻿<?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?)  » Best Practise for the Web and Strataframe</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sun, 05 Apr 2026 21:44:49 GMT</lastBuildDate><ttl>20</ttl><item><title>Best Practise for the Web and Strataframe</title><link>http://forum.strataframe.net/FindPost31914.aspx</link><description>Hi All,&lt;br/&gt;&lt;br/&gt;I create some app on the web with c# (asp.net) and strataframe.&lt;br/&gt;&lt;br/&gt;I have a lot of user which start a webform to add a new record,&lt;br/&gt;when i click on new , i make : "this.MyBo.add()"&lt;br/&gt;&lt;br/&gt;They make other things, during more 20min,&amp;nbsp; and the get a error when they validate their form.&lt;br/&gt;&lt;br/&gt;I know , that i get grow up the session, but it's not recommandate on the web.&lt;br/&gt;&lt;br/&gt;Why Strata store in variable Session ? not in the viewstate Session ?&lt;br/&gt;&lt;br/&gt;Have you a solution for this problem ?&lt;br/&gt;&lt;br/&gt;Thanks&lt;br/&gt;Olivier</description><pubDate>Tue, 09 Jul 2013 03:33:39 GMT</pubDate><dc:creator>Olivier</dc:creator></item><item><title>RE: Best Practise for the Web and Strataframe</title><link>http://forum.strataframe.net/FindPost32135.aspx</link><description>Hello ben,&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;You don't need to do postback on each textbox, cause it's heavy way for the server process.&lt;br/&gt;(i have 600 users , and 30 variable session (bo ) by user)&lt;br/&gt;On the web app, we must save the transfer between server and client, it's for the reason, that ajax was create.&lt;br/&gt;&lt;br/&gt;Strataframe is made for the winform concept, i try to find a way to work in the web form. &lt;br/&gt;&lt;span id="result_box" class="" lang="en"&gt;&lt;span class="hps"&gt;I'm sorry&lt;/span&gt; &lt;span class="hps"&gt;to see that&lt;/span&gt; &lt;span class="hps"&gt;no&lt;/span&gt; &lt;span class="hps"&gt;other&lt;/span&gt; &lt;span class="hps"&gt;develop&lt;/span&gt; &lt;span class="hps"&gt;web&lt;/span&gt; &lt;span class="hps"&gt;who saw&lt;/span&gt; &lt;span class="hps"&gt;this problem. May be they made only website not web app,&lt;br/&gt;or more developer for the winform. i don't know.&lt;br/&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;The session variable is not the solution to save the state cause &lt;span id="result_box" class="" lang="en"&gt;&lt;span class="hps"&gt;they are&lt;/span&gt; &lt;span class="hps"&gt;not&lt;/span&gt; &lt;span class="hps"&gt;permanent&lt;/span&gt; &lt;span class="hps"&gt;because of the number&lt;br/&gt;&lt;/span&gt;&lt;span class="hps"&gt;of&lt;/span&gt; &lt;span class="hps"&gt;resource&lt;/span&gt; &lt;span class="hps"&gt;user&lt;/span&gt;&lt;/span&gt; , and the other bo like entity or hibernate, not refresh the binding field when i postback on the server&lt;br/&gt;&amp;nbsp;with expired session.&lt;br/&gt;&lt;br/&gt;is It possible to desactivate the binding field refresh during an Editing or Adding state ?&lt;br/&gt;&lt;br/&gt;If we found a solution, we have the best Bo all over the world, cause the other on the web work there are a web approach not fox approach !&lt;br/&gt;&lt;br/&gt;thanks again for your help&lt;br/&gt;Olivier</description><pubDate>Tue, 09 Jul 2013 03:33:39 GMT</pubDate><dc:creator>Olivier</dc:creator></item><item><title>RE: Best Practise for the Web and Strataframe</title><link>http://forum.strataframe.net/FindPost32131.aspx</link><description>You can probably set the AutoPostBack="True" on each of your textboxes that collects data. &amp;nbsp;This will cause the form to post back to the web server each time one of the text boxes loses control. &amp;nbsp;That way, the user would only lose the last text box they were typing in when their session times out. &amp;nbsp;Each time the user tabs to a new textbox, the postback will copy the value back into the business object. &amp;nbsp;There's definitely a way to do it, we just need to find the right combination of properties on the UI controls.</description><pubDate>Mon, 08 Jul 2013 09:55:41 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Best Practise for the Web and Strataframe</title><link>http://forum.strataframe.net/FindPost32130.aspx</link><description>Hello Ben,&lt;br/&gt;&lt;br/&gt;Thanks for this approach ! it can help a little for the starting.&lt;br/&gt;&lt;br/&gt;I have a question , if my app has 40 min time session.&lt;br/&gt;&lt;br/&gt;My user start to fill the textbox , in new record, so i put StateAdding on strataframe,&lt;br/&gt;&lt;br/&gt;if my user left his computer to go outdoor to see a customer, or take a call,&lt;br/&gt;when he restart his input , the session are ended.&lt;br/&gt;&lt;br/&gt;He push validate button, and he lose his customer form.&lt;br/&gt;&lt;br/&gt;Can i save the state of bo with the fill textbox when he click on the validate button ?&lt;br/&gt;&lt;br/&gt;How can save the state ?&lt;br/&gt;&lt;br/&gt;i think, if i load editing state or adding state only on push validate button, i lose my binding field.&lt;br/&gt;&lt;br/&gt;I don't know if you can see what i mean, with my poor english.&lt;br/&gt;&lt;br/&gt;thanks for your help &lt;br/&gt;i appreciate that.&lt;br/&gt;&lt;br/&gt;Olivier</description><pubDate>Mon, 08 Jul 2013 08:56:01 GMT</pubDate><dc:creator>Olivier</dc:creator></item><item><title>RE: Best Practise for the Web and Strataframe</title><link>http://forum.strataframe.net/FindPost32129.aspx</link><description>There is already a way to save the BOs to XML. &amp;nbsp;You can use bo.CurrentDataTable.WriteXml(filename) to save the file and bo.CurrentDataTable.ReadXml(filename) to read it back in. &amp;nbsp;The only sticky point you may have to work with is determining the folder for your user. &amp;nbsp;You could create a folder with a GUID for it's name and store the path in a SQL table with the username and the time when the session was created. &amp;nbsp;When the user loads a page, check SQL to see if there is an existing session for them and then load the XML file from disk. &amp;nbsp;For that matter, you could also store the raw XML in a VARCHAR(MAX) field in SQL. &amp;nbsp;Then you only have to do one lookup. &amp;nbsp;Take the raw XML string, put it into an XmlReader and call bo.CurrentDataTable.ReadXml(reader).</description><pubDate>Mon, 08 Jul 2013 08:36:53 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Best Practise for the Web and Strataframe</title><link>http://forum.strataframe.net/FindPost32126.aspx</link><description>Hello &lt;br/&gt;&lt;br/&gt;i forget to tell, i have test to use viewstate to save a session bo, but asp.net&lt;br/&gt;say "Out Of Memory"&lt;br/&gt;&lt;br/&gt;Thanks&lt;br/&gt;Olivier,</description><pubDate>Fri, 05 Jul 2013 03:17:28 GMT</pubDate><dc:creator>Olivier</dc:creator></item><item><title>RE: Best Practise for the Web and Strataframe</title><link>http://forum.strataframe.net/FindPost32125.aspx</link><description>Hello&lt;br/&gt;&lt;br/&gt;I get a idea about the solution.&lt;br/&gt;&lt;br/&gt;It's possible like foxpro and cursor temp to store in Xml (dir temp for each session) or Sql Server,&lt;br/&gt;the state of Bo Stratra. We can set up timeout on parameters Bo, if the temps are too old strat delete this.&lt;br/&gt;&lt;br/&gt;It's a real problem, i understand we have plus to save the state session against entity or other bo.&lt;br/&gt;&lt;br/&gt;But we need to understand , it's not the best way to work in the app web, only in winform. Please accept my enhancement&lt;br/&gt;to have no problem with my user.&lt;br/&gt;&lt;br/&gt;I know we can save on sql server session, but i use the classic session in proc , the problem is only for stratra&lt;br/&gt;&lt;br/&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms178586.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms178586.aspx&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Do you know a simple way to save a Bo in xml file ?&lt;br/&gt;&lt;br/&gt;Can you read the third post here ?&lt;br/&gt;&lt;a href="http://stackoverflow.com/questions/1725925/how-to-set-session-timeout-more-than-20-min"&gt;http://stackoverflow.com/questions/1725925/how-to-set-session-timeout-more-than-20-min&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;thanks&lt;br/&gt;Olivier,</description><pubDate>Fri, 05 Jul 2013 03:09:20 GMT</pubDate><dc:creator>Olivier</dc:creator></item><item><title>RE: Best Practise for the Web and Strataframe</title><link>http://forum.strataframe.net/FindPost32124.aspx</link><description>Hello Ben,&lt;br/&gt;&lt;br/&gt;In the version 2.0 , the Bo inherit from Entity ? it's exact ?&lt;br/&gt;&lt;br/&gt;Do you know how entity store the Business object during the session ?</description><pubDate>Thu, 04 Jul 2013 10:49:32 GMT</pubDate><dc:creator>Olivier</dc:creator></item><item><title>RE: Best Practise for the Web and Strataframe</title><link>http://forum.strataframe.net/FindPost31940.aspx</link><description>[quote][b]Ben Chase (3/15/2013)[/b][hr]&lt;br/&gt;&lt;div&gt;&lt;br/&gt;&lt;div&gt;I'm thinking this is an implicit enhancement request to be able to store the v2 entities in the ViewState, no?[/quote]&lt;br/&gt;&lt;br/&gt;Hi,&lt;br/&gt;&lt;br/&gt;I make a mistake about viewstate it's too heavy way.&amp;nbsp; If it's possible to desactivate the variable session&lt;br/&gt;to get a load on each request. (it's the same for entity , how they do ? )&lt;br/&gt;&lt;br/&gt;ps : i send to michel this website info.&lt;br/&gt;&lt;br/&gt;&lt;span id="ctl00_ctlContentPlaceHolder_ctl00_ctlTopic_ctlPanelBar_ctlTopicsRepeater_ctl09_lblFullMessage"&gt;&lt;br/&gt;&lt;a href="http://forums.asp.net/t/1579957.aspx/1"&gt;&lt;a href="http://forums.asp.net/t/1579957.aspx/1"&gt;http://forums.asp.net/t/1579957.aspx/1&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;&lt;a href="http://www.mindscapehq.com/blog/index.php/2008/05/12/using-the-unit-of-work-per-request-pattern-in-aspnet-mvc/"&gt;&lt;a href="http://www.mindscapehq.com/blog/index.php/2008/05/12/using-the-unit-of-work-per-request-pattern-in-aspnet-mvc/"&gt;http://www.mindscapehq.com/blog/index.php/2008/05/12/using-the-unit-of-work-per-request-pattern-in-aspnet-mvc/&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;&lt;/span&gt;&lt;br/&gt;thanks&lt;br/&gt;Olivier,</description><pubDate>Wed, 20 Mar 2013 11:05:19 GMT</pubDate><dc:creator>Olivier</dc:creator></item><item><title>RE: Best Practise for the Web and Strataframe</title><link>http://forum.strataframe.net/FindPost31930.aspx</link><description>Thanks, Michel. &amp;nbsp;I was thinking about the problem over the weekend. &amp;nbsp;To store the business objects in the ViewState, you would need to modify the source code or copy out the source code and create your own BasePage class that works similar to the SF one. &amp;nbsp;If he wants to store the variables in the session, he could increase the session timeout and move the session state storage to SQL Server to preserve resources on the server.</description><pubDate>Mon, 18 Mar 2013 15:16:51 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Best Practise for the Web and Strataframe</title><link>http://forum.strataframe.net/FindPost31929.aspx</link><description>Hi Ben,&lt;br/&gt;&lt;br/&gt;I'll translate your answer on the French speaking SF forum, and I'll come back here if we need more help.&lt;br /&gt;</description><pubDate>Mon, 18 Mar 2013 15:06:43 GMT</pubDate><dc:creator>Michel Levy</dc:creator></item><item><title>RE: Best Practise for the Web and Strataframe</title><link>http://forum.strataframe.net/FindPost31928.aspx</link><description>Hello Ben,&lt;br/&gt;&lt;br/&gt;It's possible to desactivate the Object Session with Strata , to Load on each demand ?&lt;br/&gt;&lt;br/&gt;Without modify the source code?&lt;br/&gt;&lt;br/&gt;thanks&lt;br/&gt;Olivier</description><pubDate>Fri, 15 Mar 2013 17:04:44 GMT</pubDate><dc:creator>Olivier</dc:creator></item><item><title>RE: Best Practise for the Web and Strataframe</title><link>http://forum.strataframe.net/FindPost31923.aspx</link><description>Hello Ben,&lt;br/&gt;&lt;br/&gt;May be, i explain myself very bad. &lt;br/&gt;&lt;br/&gt;I don't know if we store Strata on Session or Viewstate it's better.&lt;br/&gt;&lt;br/&gt;But , i don't want to depend the limited time , for my user.&lt;br/&gt;&lt;br/&gt;I mean, i want to understand how Entity framework work with asp.net &lt;br/&gt;and if my problem will be resolv with Strata 2.0.&lt;br/&gt;&lt;br/&gt;Does Entity depend some variable session ?&lt;br/&gt;&lt;br/&gt;If the user add new record and my app can load their session with cookie,&lt;br/&gt;to during more 24 h if i want.&lt;br/&gt;&lt;br/&gt;If the user add new record with entity it's work without session or not ?&lt;br/&gt;&lt;br/&gt;Strata will be fusion with entities ?&lt;br/&gt;&lt;br/&gt;It's possible if the session is expired do not lose the value in textbox , to reload Bo to make an Add() ?&lt;br/&gt;&lt;br/&gt;thanks for your help, i have many question about stroke with strata and the web .&lt;br/&gt;&lt;br/&gt;ben</description><pubDate>Fri, 15 Mar 2013 12:08:38 GMT</pubDate><dc:creator>Olivier</dc:creator></item><item><title>RE: Best Practise for the Web and Strataframe</title><link>http://forum.strataframe.net/FindPost31921.aspx</link><description>We use the Session because the business objects can get pretty large, and we didn't want to run into the maximum HTTP request size limit. &amp;nbsp;However, the business objects are serializable, so they can certainly be stored in the ViewState. &amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;div&gt;To do this, build your own BasePage and don't use the StrataFrame one. &amp;nbsp;Create it by copying the one from the StrataFrame source code. &amp;nbsp;It's only ~300 lines of code, and everything will stay the same except for the&amp;nbsp;InitializeBusinessObjects() method. &amp;nbsp;There are 2 references in there to the Session, and you can change those to ViewState. &amp;nbsp;That method is not overridable, otherwise, you could just override it rather than having to re-create the BasePage class. &amp;nbsp;Which is certainly another option: modify the source to make the&amp;nbsp;InitializeBusinessObjects() method Protected Override and override it to store the BOs in the ViewState rather than the Session.&lt;br/&gt;&lt;br/&gt;&lt;div&gt;I'm thinking this is an implicit enhancement request to be able to store the v2 entities in the ViewState, no?</description><pubDate>Fri, 15 Mar 2013 11:39:49 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>