﻿<?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?)  » WebBusinessBindingSource and method add</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Thu, 09 Apr 2026 04:23:26 GMT</lastBuildDate><ttl>20</ttl><item><title>WebBusinessBindingSource and method add</title><link>http://forum.strataframe.net/FindPost31861.aspx</link><description>Hello,&lt;br/&gt;&lt;br/&gt;I use the Telerik RadGrid for a long times , only readonly view.&lt;br/&gt;&lt;br/&gt;I have a question about a good way, my grid is link with WebBusinessBindingsource&lt;br/&gt;and it's work very well.&lt;br/&gt;&lt;br/&gt;I have a button in my WebForm to Add a record, when i start&lt;br/&gt;This.MyBo.Add()&lt;br/&gt;This.MyRadGrid.Databind();&lt;br/&gt;&lt;br/&gt;The grid contain my old Fill Data on my Businessobject.&lt;br/&gt;&lt;br/&gt;How can i get a empty grid when i want to add a record.&lt;br/&gt;&lt;br/&gt;i hope to be explain.&lt;br/&gt;&lt;br/&gt;Thanks&lt;br/&gt;Olivier,</description><pubDate>Wed, 27 Feb 2013 09:01:20 GMT</pubDate><dc:creator>Olivier</dc:creator></item><item><title>RE: WebBusinessBindingSource and method add</title><link>http://forum.strataframe.net/FindPost31885.aspx</link><description>Hello Ben,&lt;br/&gt;&lt;br/&gt;It's not a good way to increase a session timeout on the web, cause the server lose a lot of ressources.&lt;br/&gt;&lt;br/&gt;On the most of the website, you can see a checkbox on the bottom of the login, it add a cookie session, which it can&lt;br/&gt;to reload a session when it's timeout.&lt;br/&gt;&lt;br/&gt;it's a best tip&amp;nbsp; to keep alive the front iis server (and apache or other).&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;I reload the session on the appbasepage, i will re think the way , to reload so the business object.&lt;br/&gt;with your idea to &lt;span id="ctl00_ctlContentPlaceHolder_ctl00_ctlTopic_ctlPanelBar_ctlTopicsRepeater_ctl01_lblFullMessage"&gt;repopulate the business object.&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;thanks for your help.&lt;br/&gt;Olivier,</description><pubDate>Wed, 27 Feb 2013 09:01:20 GMT</pubDate><dc:creator>Olivier</dc:creator></item><item><title>RE: WebBusinessBindingSource and method add</title><link>http://forum.strataframe.net/FindPost31884.aspx</link><description>Hrm, Olivier, I don't think there is a pretty way to handle the continuing of a session if the user lets the session time out. &amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;div&gt;You could increase the session timeout in IIS to more than 20 minutes. &amp;nbsp;In the page load, if the user tries to validate some data and the business object is empty, you know that the session has timed out and you can show a message to the user that tells them their session has timed out and they need to not wait so long before trying to validate the data.&lt;br/&gt;&lt;br/&gt;&lt;div&gt;Or, you could create you're own session tracking for this data by logging it to SQL Server. &amp;nbsp;You would just need to log, by user, what business object they are editing and the primary key. &amp;nbsp;Then, at the top of the page load, if the user has an editing log record, and the requested business object is empty, you would repopulate the business object.</description><pubDate>Wed, 27 Feb 2013 08:51:01 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: WebBusinessBindingSource and method add</title><link>http://forum.strataframe.net/FindPost31881.aspx</link><description>Hello Ben, &lt;br/&gt;&lt;br/&gt;i try to find a solution and i come back to tell you.&lt;br/&gt;&lt;br/&gt;I have a question about Bo store in session variable,&lt;br/&gt;&lt;br/&gt;if my user let the browser during a call for 20 minutes in editing state, &lt;br/&gt;strata lose information when the user want to validate this.&lt;br/&gt;&lt;br/&gt;I know the user still too long, but it's happen like this.&lt;br/&gt;&lt;br/&gt;Have you an idea to test if the Session use with strata are expired, to reload data in memory ?&lt;br/&gt;&lt;br/&gt;thanks&lt;br/&gt;OLivier</description><pubDate>Wed, 27 Feb 2013 02:26:29 GMT</pubDate><dc:creator>Olivier</dc:creator></item><item><title>RE: WebBusinessBindingSource and method add</title><link>http://forum.strataframe.net/FindPost31868.aspx</link><description>If the business object is on the ApplicationBasePage, then it's stored in a session variable, so as soon as possible during the load, the business object is pulled from the session variable, so it's not a new business object on each page load. &amp;nbsp;If you put a clear at the top of the load, then do an Add() in an event handler, then it's possible you're clearing the business object, then it's set back to the one stored in the session variable, then the event handler is called. &amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;div&gt;You might have to put Clear() at the very top of the event handler that is calling your Add().</description><pubDate>Mon, 25 Feb 2013 12:50:25 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: WebBusinessBindingSource and method add</title><link>http://forum.strataframe.net/FindPost31865.aspx</link><description>Hello Ben,&lt;br/&gt;&lt;br/&gt;It's really strange, cause i fill&lt;br/&gt;in the page_load and i use ! Page.IsPostBack&lt;br/&gt;&lt;br/&gt;if (! Page.IsPostBack) {&lt;br/&gt;&amp;nbsp;&amp;nbsp; LoadDetail(Convert.ToInt32(cMAN_ID));&lt;br/&gt;&amp;nbsp;&amp;nbsp; this.SetButtonState();&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;in my button New i had already clear before add()&lt;br/&gt;&lt;br/&gt;and before add i same put this :&amp;nbsp; this.MyBo.MyCustomFillData("myfield","man_id=-1");&lt;br/&gt;to get no record.&lt;br/&gt;&lt;br/&gt;Have you an another idea ?&lt;br/&gt;&lt;br/&gt;thanks&lt;br/&gt;Olivier,</description><pubDate>Mon, 25 Feb 2013 08:49:56 GMT</pubDate><dc:creator>Olivier</dc:creator></item><item><title>RE: WebBusinessBindingSource and method add</title><link>http://forum.strataframe.net/FindPost31864.aspx</link><description>Are you wanting to only show that 1 empty row when you're adding a new record? &amp;nbsp;If so, you will need to call this.MyBO.Clear() before you call the Add(). &amp;nbsp;If this.MyBO has a static backing field, then it's probably already filled with data on the post back.</description><pubDate>Mon, 25 Feb 2013 07:37:23 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>