﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » .NET Forums » General .NET Discussion  » Stateful class</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 09:28:17 GMT</lastBuildDate><ttl>20</ttl><item><title>Stateful class</title><link>http://forum.strataframe.net/FindPost19863.aspx</link><description>Hi,&lt;br&gt;
I have a class that act as bridge between two BusinessObjects. When BO1 add new row, BridgeClass will be notified (eventbinding). Then BridgeClass will call BO2 to add new row as well. BridgeClass able to "sync" CRUD actions.&lt;br&gt;
&lt;br&gt;
This class is working fine in WinForm dev. When I use it in WebDev, it doesn't work because everytime postback, Bridge class will be re-created. All settings are gone.&lt;br&gt;
&lt;br&gt;
How could I change it so that it is "stateful/persisted"?&lt;br&gt;
&lt;br&gt;
Thank you</description><pubDate>Fri, 03 Oct 2008 09:49:53 GMT</pubDate><dc:creator>Chan</dc:creator></item><item><title>RE: Stateful class</title><link>http://forum.strataframe.net/FindPost19866.aspx</link><description>You will want to create the bridge BO as a shared instance this way the postback will not continue to recreate the BO.&amp;nbsp; You can also do this as a defined BO in the ApplicationBasePage as these will be persisted as well.</description><pubDate>Fri, 03 Oct 2008 09:49:53 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>