Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 864d1c3c3cd8df4e3a2692faf8776e05 > files > 1068

db4o-doc-7.4-2.fc13.i686.rpm

<html>
  <head>
    <META http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>ASP.NET</title>
    <link rel="stylesheet" type="text/css" href="../../style.css">
  </head>
  <body>
    <div class="CommonContent">
      <div class="CommonContentArea">
        <h1>ASP.NET</h1><div id="TOC"><div id="TOCinner"><span class="TOCtitle">Contents</span><div class="TOCcontents"><ul><li><a href ="#Security Requirements&nbsp;">Security Requirements&nbsp;</a></li><li><a href ="#Sample Application">Sample Application</a></li><li><a href ="#Persisting Objects in ASP.NET2&nbsp;">Persisting Objects in ASP.NET2&nbsp;</a></li><li><a href ="#More Information">More Information</a></li></ul></li></ul></div></div></div><script>
//We attach this function to a browser object as a variable so that if multiple of these blocks are
//present on the same page, then they will simply over-write eachother with the same function instead
//of generating a naming collision.
window.WikiCodeFormattingCopyToClipboard = function copyToClipboard(sID){
	var sContent = document.getElementById(sID).innerText;
	if( window.clipboardData && clipboardData.setData )
	{
		clipboardData.setData("Text", sContent);
	}
	else
	{
		alert("You must enable javascript access to your clipboard for this feature to work. Please referr to your browser documentation or Google search for instructions.");
	}
}
</script>


<p><font color="#990000">This topic applies to .NET version only</font>&nbsp;</p>

<p>You can use db4o as a persistent layer of your ASP.NET
application. The actual integration of db4o into your web application is quite
simple: you just need to add reference to Db4objects.Db4o.dll and use it in a client/server mode. <br></p>
<a name="Security Requirements&nbsp;"></a><h2>Security Requirements&nbsp;</h2>

<p>However, as it is characteristic to web-applications in general, there
are some security permissions involved, which can in fact forbid db4o
functionality in your ASP.NET application. So, before developing/deploying you
should make sure that the required permissions would be granted to your
application at the hosting server:</p>

<ol>
<li>ASPNET user should have read/write permissions to the
directory containing database file. Obviously this is necessary to work with
the database.</li>

<li>

<p class="MsoNormal">Trust Level of your site should be set to "Full".</p>
</li>

<li>
<p class="MsoNormal">All the necessary permissions should be granted to db4o assembly. The easiest way to ensure this is to add full trust to db4o:</p>

</li>

<ul>
<li>For .NET 1.1 you can set this using caspol utility:</li>
<code>caspol -af Db4objects.Db4o.dll</code>
<li>For .NET versions &gt;= 2.0 Db4objects.Db4o.dll should be
installed in GAC</li>
</ul>

<p>If full trust is not a suitable solution for, you can check the minimum security permissions that
db4o dll needs to operate using permcalc.exe tool from your Visual Studio installation. </p>

<p><code>PermCalc.exe -Sandbox Db4objects.Db4o.dll</code></p>

<div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">sandbox.PermCalc.xml</span></div><div class="fscCode"><pre ID="ResourcesReferencePlatform_Specific_Issuessandbox.Permcalc.Xml_1618_34"><div><!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><span style="color: #008080;">01</span><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/><span style="color: #0000FF;">&lt;?</span><span style="color: #FF00FF;">xml version=&quot;1.0&quot;</span><span style="color: #0000FF;">?&gt;</span><span style="color: #000000;">
</span><span style="color: #008080;">02</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">Sandbox</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
</span><span style="color: #008080;">03</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>  </span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">PermissionSet </span><span style="color: #FF0000;">version</span><span style="color: #0000FF;">=&quot;1&quot;</span><span style="color: #FF0000;"> class</span><span style="color: #0000FF;">=&quot;System.Security.PermissionSet&quot;</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
</span><span style="color: #008080;">04</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>    </span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">IPermission </span><span style="color: #FF0000;">version</span><span style="color: #0000FF;">=&quot;1&quot;</span><span style="color: #FF0000;"> class</span><span style="color: #0000FF;">=&quot;System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&quot;</span><span style="color: #FF0000;"> Read</span><span style="color: #0000FF;">=&quot;*AllFiles*&quot;</span><span style="color: #FF0000;"> PathDiscovery</span><span style="color: #0000FF;">=&quot;*AllFiles*&quot;</span><span style="color: #FF0000;"> </span><span style="color: #0000FF;">/&gt;</span><span style="color: #000000;">
</span><span style="color: #008080;">05</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>    </span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">IPermission </span><span style="color: #FF0000;">version</span><span style="color: #0000FF;">=&quot;1&quot;</span><span style="color: #FF0000;"> class</span><span style="color: #0000FF;">=&quot;System.Security.Permissions.ReflectionPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&quot;</span><span style="color: #FF0000;"> Flags</span><span style="color: #0000FF;">=&quot;MemberAccess&quot;</span><span style="color: #FF0000;"> </span><span style="color: #0000FF;">/&gt;</span><span style="color: #000000;">
</span><span style="color: #008080;">06</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>    </span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">IPermission </span><span style="color: #FF0000;">version</span><span style="color: #0000FF;">=&quot;1&quot;</span><span style="color: #FF0000;"> class</span><span style="color: #0000FF;">=&quot;System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&quot;</span><span style="color: #FF0000;"> Flags</span><span style="color: #0000FF;">=&quot;UnmanagedCode, Execution, ControlEvidence&quot;</span><span style="color: #FF0000;"> </span><span style="color: #0000FF;">/&gt;</span><span style="color: #000000;">
</span><span style="color: #008080;">07</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>    </span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">IPermission </span><span style="color: #FF0000;">Window</span><span style="color: #0000FF;">=&quot;SafeSubWindows&quot;</span><span style="color: #FF0000;"> Clipboard</span><span style="color: #0000FF;">=&quot;OwnClipboard&quot;</span><span style="color: #FF0000;"> version</span><span style="color: #0000FF;">=&quot;1&quot;</span><span style="color: #FF0000;"> class</span><span style="color: #0000FF;">=&quot;System.Security.Permissions.UIPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&quot;</span><span style="color: #FF0000;"> </span><span style="color: #0000FF;">/&gt;</span><span style="color: #000000;">
</span><span style="color: #008080;">08</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>    </span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">IPermission </span><span style="color: #FF0000;">version</span><span style="color: #0000FF;">=&quot;1&quot;</span><span style="color: #FF0000;"> class</span><span style="color: #0000FF;">=&quot;System.Security.Permissions.KeyContainerPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&quot;</span><span style="color: #FF0000;"> Unrestricted</span><span style="color: #0000FF;">=&quot;true&quot;</span><span style="color: #FF0000;"> </span><span style="color: #0000FF;">/&gt;</span><span style="color: #000000;">
</span><span style="color: #008080;">09</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>  </span><span style="color: #0000FF;">&lt;/</span><span style="color: #800000;">PermissionSet</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
</span><span style="color: #008080;">10</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">&lt;/</span><span style="color: #800000;">Sandbox</span><span style="color: #0000FF;">&gt;</span></div></pre></div></div>

<p>Consult with your web-server administrator to grant these
permissions.</p>
</ol>
<a name="Sample Application"></a><h2>Sample Application</h2>
<ol>
</ol>

<p>Let's look at an example implementation: we will create a
simple ASP.NET application, which will use db4o to store, retrieve and delete
objects </p>

<p>The basic requirements for seamless db4o integration are:</p>

<ul>
<li>db4o server should open database file at application start
and close it when application is terminated</li>

<li>clients, accessing application through web-browser, should
get their db4o-client connection on request.</li>
</ul>

<p>In order to keep page-specific code clean we will implement
db4o functionality in a separate Db4oHttpModule
implementing IhttpModule interface.</p>

<p>Database file path can be saved in <a href="web.config.html" class="wikiLink">Web.Config</a>: </p>

<p><code>&lt;appSettings&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;add key="db4oFileName" value="~/Data/Test.yap"/&gt;<br>
&lt;/appSettings&gt;</code></p>

<p>Make sure that you have Data folder inside you web-site
directory. ASPNET user should have enough rights to create and modify files
inside this folder. You should also make sure that Data folder is not
accessible to anonymous user; otherwise web-server visitors will be able to
download your database.</p>


<p>We will open db4o connection only with the first client
request:</p>

<span name="cs_wiki_filter" csw_filters="cs">

<div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">Db4oHttpModule.cs: <span class="fscMemberName">Client</span></span></div><div class="fscCode"><pre ID="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Client_3068_57"><div><!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><span style="color: #008080;">01</span><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/><span style="color: #0000FF;">public</span><span style="color: #000000;"> </span><span style="color: #0000FF;">static</span><span style="color: #000000;"> IObjectContainer Client
</span><span style="color: #008080;">02</span><span style="color: #000000;"><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Client_3068_57_46_501_Open_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Client_3068_57_46_501_Open_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Client_3068_57_46_501_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Client_3068_57_46_501_Closed_Text').style.display='inline';"/><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Client_3068_57_46_501_Closed_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Client_3068_57_46_501_Closed_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Client_3068_57_46_501_Open_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Client_3068_57_46_501_Open_Text').style.display='inline';"/>        </span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Client_3068_57_46_501_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Client_3068_57_46_501_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">03</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">get</span><span style="color: #000000;">
</span><span style="color: #008080;">04</span><span style="color: #000000;"><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Client_3068_57_76_491_Open_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Client_3068_57_76_491_Open_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Client_3068_57_76_491_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Client_3068_57_76_491_Closed_Text').style.display='inline';"/><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Client_3068_57_76_491_Closed_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Client_3068_57_76_491_Closed_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Client_3068_57_76_491_Open_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Client_3068_57_76_491_Open_Text').style.display='inline';"/>            </span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Client_3068_57_76_491_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Client_3068_57_76_491_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">05</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                HttpContext context </span><span style="color: #000000;">=</span><span style="color: #000000;"> HttpContext.Current;
</span><span style="color: #008080;">06</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">07</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                IObjectContainer objectClient </span><span style="color: #000000;">=</span><span style="color: #000000;"> context.Items[KEY_DB4O_CLIENT] </span><span style="color: #0000FF;">as</span><span style="color: #000000;"> IObjectContainer;
</span><span style="color: #008080;">08</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">09</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">if</span><span style="color: #000000;"> (objectClient </span><span style="color: #000000;">==</span><span style="color: #000000;"> </span><span style="color: #0000FF;">null</span><span style="color: #000000;">)
</span><span style="color: #008080;">10</span><span style="color: #000000;"><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Client_3068_57_297_439_Open_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Client_3068_57_297_439_Open_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Client_3068_57_297_439_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Client_3068_57_297_439_Closed_Text').style.display='inline';"/><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Client_3068_57_297_439_Closed_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Client_3068_57_297_439_Closed_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Client_3068_57_297_439_Open_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Client_3068_57_297_439_Open_Text').style.display='inline';"/>                </span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Client_3068_57_297_439_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Client_3068_57_297_439_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">11</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    objectClient </span><span style="color: #000000;">=</span><span style="color: #000000;"> Server.OpenClient();
</span><span style="color: #008080;">12</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    context.Items[KEY_DB4O_CLIENT] </span><span style="color: #000000;">=</span><span style="color: #000000;"> objectClient;
</span><span style="color: #008080;">13</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>                }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">14</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">15</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">return</span><span style="color: #000000;"> objectClient;
</span><span style="color: #008080;">16</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>            }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">17</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/>        }</span></span></div></pre></div></div> <br><div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">Db4oHttpModule.cs: <span class="fscMemberName">Server</span></span></div><div class="fscCode"><pre ID="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Server_3130_58"><div><!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><span style="color: #008080;">01</span><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/><span style="color: #0000FF;">private</span><span style="color: #000000;"> </span><span style="color: #0000FF;">static</span><span style="color: #000000;"> IObjectServer Server
</span><span style="color: #008080;">02</span><span style="color: #000000;"><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Server_3130_58_44_471_Open_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Server_3130_58_44_471_Open_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Server_3130_58_44_471_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Server_3130_58_44_471_Closed_Text').style.display='inline';"/><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Server_3130_58_44_471_Closed_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Server_3130_58_44_471_Closed_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Server_3130_58_44_471_Open_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Server_3130_58_44_471_Open_Text').style.display='inline';"/>        </span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Server_3130_58_44_471_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Server_3130_58_44_471_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">03</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">get</span><span style="color: #000000;">
</span><span style="color: #008080;">04</span><span style="color: #000000;"><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Server_3130_58_74_461_Open_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Server_3130_58_74_461_Open_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Server_3130_58_74_461_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Server_3130_58_74_461_Closed_Text').style.display='inline';"/><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Server_3130_58_74_461_Closed_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Server_3130_58_74_461_Closed_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Server_3130_58_74_461_Open_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Server_3130_58_74_461_Open_Text').style.display='inline';"/>            </span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Server_3130_58_74_461_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Server_3130_58_74_461_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">05</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                HttpContext context </span><span style="color: #000000;">=</span><span style="color: #000000;"> HttpContext.Current;
</span><span style="color: #008080;">06</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">07</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">if</span><span style="color: #000000;"> (objectServer </span><span style="color: #000000;">==</span><span style="color: #000000;"> </span><span style="color: #0000FF;">null</span><span style="color: #000000;">)
</span><span style="color: #008080;">08</span><span style="color: #000000;"><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Server_3130_58_194_409_Open_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Server_3130_58_194_409_Open_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Server_3130_58_194_409_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Server_3130_58_194_409_Closed_Text').style.display='inline';"/><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Server_3130_58_194_409_Closed_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Server_3130_58_194_409_Closed_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Server_3130_58_194_409_Open_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Server_3130_58_194_409_Open_Text').style.display='inline';"/>                </span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Server_3130_58_194_409_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Server_3130_58_194_409_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">09</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    </span><span style="color: #0000FF;">string</span><span style="color: #000000;"> yapFilePath </span><span style="color: #000000;">=</span><span style="color: #000000;"> context.Server.MapPath(ConfigurationSettings.AppSettings[KEY_DB4O_FILE_NAME]);
</span><span style="color: #008080;">10</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">11</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    objectServer </span><span style="color: #000000;">=</span><span style="color: #000000;"> Db4oFactory.OpenServer(yapFilePath, </span><span style="color: #800080;">0</span><span style="color: #000000;">);
</span><span style="color: #008080;">12</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>                }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">13</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">14</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">return</span><span style="color: #000000;"> objectServer;
</span><span style="color: #008080;">15</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>            }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">16</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/>        }</span></span></div></pre></div></div>

</span>

<span name="cs_wiki_filter" csw_filters="vb">

<div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">Db4oHttpModule.vb: <span class="fscMemberName">Client</span></span></div><div class="fscCode"><pre ID="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_Client_3252_57"><div><!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><span style="color: #008080;">01</span><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_Client_3252_57_23_521_Open_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_Client_3252_57_23_521_Open_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_Client_3252_57_23_521_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_Client_3252_57_23_521_Closed_Text').style.display='inline';"/><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_Client_3252_57_23_521_Closed_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_Client_3252_57_23_521_Closed_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_Client_3252_57_23_521_Open_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_Client_3252_57_23_521_Open_Text').style.display='inline';"/><span style="color: #0000FF;">Public</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Shared</span><span style="color: #000000;"> </span><span style="color: #0000FF;">ReadOnly</span><span style="color: #000000;"> </span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_Client_3252_57_23_521_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Property Client()</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_Client_3252_57_23_521_Open_Text"><span style="color: #0000FF;">Property</span><span style="color: #000000;"> Client() </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> IObjectContainer
</span><span style="color: #008080;">02</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">Get</span><span style="color: #000000;">
</span><span style="color: #008080;">03</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">Dim</span><span style="color: #000000;"> context </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> HttpContext </span><span style="color: #000000;">=</span><span style="color: #000000;"> HttpContext.Current
</span><span style="color: #008080;">04</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">Dim</span><span style="color: #000000;"> objectClient </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> IObjectContainer </span><span style="color: #000000;">=</span><span style="color: #000000;"> TryCast(context.Items(KEY_DB4O_CLIENT), IObjectContainer)
</span><span style="color: #008080;">05</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">If</span><span style="color: #000000;"> objectClient </span><span style="color: #0000FF;">Is</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Nothing</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Then</span><span style="color: #000000;">
</span><span style="color: #008080;">06</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    objectClient </span><span style="color: #000000;">=</span><span style="color: #000000;"> Server.OpenClient
</span><span style="color: #008080;">07</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    context.Items(KEY_DB4O_CLIENT) </span><span style="color: #000000;">=</span><span style="color: #000000;"> objectClient
</span><span style="color: #008080;">08</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">End</span><span style="color: #000000;"> </span><span style="color: #0000FF;">If</span><span style="color: #000000;">
</span><span style="color: #008080;">09</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">Return</span><span style="color: #000000;"> objectClient
</span><span style="color: #008080;">10</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">End</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Get</span><span style="color: #000000;">
</span><span style="color: #008080;">11</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/>        </span><span style="color: #0000FF;">End Property</span></span></div></pre></div></div> <br><div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">Db4oHttpModule.vb: <span class="fscMemberName">Server</span></span></div><div class="fscCode"><pre ID="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_Server_3314_58"><div><!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><span style="color: #008080;">01</span><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_Server_3314_58_24_486_Open_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_Server_3314_58_24_486_Open_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_Server_3314_58_24_486_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_Server_3314_58_24_486_Closed_Text').style.display='inline';"/><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_Server_3314_58_24_486_Closed_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_Server_3314_58_24_486_Closed_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_Server_3314_58_24_486_Open_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_Server_3314_58_24_486_Open_Text').style.display='inline';"/><span style="color: #0000FF;">Private</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Shared</span><span style="color: #000000;"> </span><span style="color: #0000FF;">ReadOnly</span><span style="color: #000000;"> </span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_Server_3314_58_24_486_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Property Server()</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_Server_3314_58_24_486_Open_Text"><span style="color: #0000FF;">Property</span><span style="color: #000000;"> Server() </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> IObjectServer
</span><span style="color: #008080;">02</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">Get</span><span style="color: #000000;">
</span><span style="color: #008080;">03</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">Dim</span><span style="color: #000000;"> context </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> HttpContext </span><span style="color: #000000;">=</span><span style="color: #000000;"> HttpContext.Current
</span><span style="color: #008080;">04</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">If</span><span style="color: #000000;"> objectServer </span><span style="color: #0000FF;">Is</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Nothing</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Then</span><span style="color: #000000;">
</span><span style="color: #008080;">05</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    </span><span style="color: #0000FF;">Dim</span><span style="color: #000000;"> yapFilePath </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> </span><span style="color: #0000FF;">String</span><span style="color: #000000;"> </span><span style="color: #000000;">=</span><span style="color: #000000;"> context.Server.MapPath(ConfigurationManager.AppSettings(KEY_DB4O_FILE_NAME))
</span><span style="color: #008080;">06</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    objectServer </span><span style="color: #000000;">=</span><span style="color: #000000;"> Db4oFactory.OpenServer(yapFilePath, </span><span style="color: #800080;">0</span><span style="color: #000000;">)
</span><span style="color: #008080;">07</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">End</span><span style="color: #000000;"> </span><span style="color: #0000FF;">If</span><span style="color: #000000;">
</span><span style="color: #008080;">08</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">Return</span><span style="color: #000000;"> objectServer
</span><span style="color: #008080;">09</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">End</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Get</span><span style="color: #000000;">
</span><span style="color: #008080;">10</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/>        </span><span style="color: #0000FF;">End Property</span></span></div></pre></div></div>

</span>

<p>The following code
will ensure that the database is closed upon termination:</p>

<span name="cs_wiki_filter" csw_filters="cs">

<div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">Db4oHttpModule.cs: <span class="fscMemberName">Application_EndRequest</span></span></div><div class="fscCode"><pre ID="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Application_EndRequest_3524_77"><div><!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><span style="color: #008080;">01</span><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/><span style="color: #0000FF;">private</span><span style="color: #000000;"> </span><span style="color: #0000FF;">void</span><span style="color: #000000;"> Application_EndRequest(</span><span style="color: #0000FF;">object</span><span style="color: #000000;"> sender, EventArgs e)
</span><span style="color: #008080;">02</span><span style="color: #000000;"><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Application_EndRequest_3524_77_72_493_Open_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Application_EndRequest_3524_77_72_493_Open_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Application_EndRequest_3524_77_72_493_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Application_EndRequest_3524_77_72_493_Closed_Text').style.display='inline';"/><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Application_EndRequest_3524_77_72_493_Closed_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Application_EndRequest_3524_77_72_493_Closed_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Application_EndRequest_3524_77_72_493_Open_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Application_EndRequest_3524_77_72_493_Open_Text').style.display='inline';"/>        </span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Application_EndRequest_3524_77_72_493_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Application_EndRequest_3524_77_72_493_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">03</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            HttpApplication application </span><span style="color: #000000;">=</span><span style="color: #000000;"> (HttpApplication)sender;
</span><span style="color: #008080;">04</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            HttpContext context </span><span style="color: #000000;">=</span><span style="color: #000000;"> application.Context;
</span><span style="color: #008080;">05</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">06</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">07</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            IObjectContainer objectClient </span><span style="color: #000000;">=</span><span style="color: #000000;"> context.Items[KEY_DB4O_CLIENT] </span><span style="color: #0000FF;">as</span><span style="color: #000000;"> IObjectContainer;
</span><span style="color: #008080;">08</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">09</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">if</span><span style="color: #000000;"> (objectClient </span><span style="color: #000000;">!=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">null</span><span style="color: #000000;">)
</span><span style="color: #008080;">10</span><span style="color: #000000;"><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Application_EndRequest_3524_77_345_398_Open_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Application_EndRequest_3524_77_345_398_Open_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Application_EndRequest_3524_77_345_398_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Application_EndRequest_3524_77_345_398_Closed_Text').style.display='inline';"/><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Application_EndRequest_3524_77_345_398_Closed_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Application_EndRequest_3524_77_345_398_Closed_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Application_EndRequest_3524_77_345_398_Open_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Application_EndRequest_3524_77_345_398_Open_Text').style.display='inline';"/>            </span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Application_EndRequest_3524_77_345_398_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Application_EndRequest_3524_77_345_398_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">11</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                objectClient.Close();
</span><span style="color: #008080;">12</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>            }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">13</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">14</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            objectClient </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">null</span><span style="color: #000000;">;
</span><span style="color: #008080;">15</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            context.Items[KEY_DB4O_CLIENT] </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">null</span><span style="color: #000000;">;
</span><span style="color: #008080;">16</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/>        }</span></span></div></pre></div></div>

<div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">Db4oHttpModule.cs: <span class="fscMemberName">Dispose</span></span></div><div class="fscCode"><pre ID="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Dispose_3605_62"><div><!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><span style="color: #008080;">1</span><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/><span style="color: #0000FF;">public</span><span style="color: #000000;"> </span><span style="color: #0000FF;">void</span><span style="color: #000000;"> Dispose()
</span><span style="color: #008080;">2</span><span style="color: #000000;"><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Dispose_3605_62_30_179_Open_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Dispose_3605_62_30_179_Open_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Dispose_3605_62_30_179_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Dispose_3605_62_30_179_Closed_Text').style.display='inline';"/><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Dispose_3605_62_30_179_Closed_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Dispose_3605_62_30_179_Closed_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Dispose_3605_62_30_179_Open_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Dispose_3605_62_30_179_Open_Text').style.display='inline';"/>        </span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Dispose_3605_62_30_179_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Dispose_3605_62_30_179_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">3</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">if</span><span style="color: #000000;"> (objectServer </span><span style="color: #000000;">!=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">null</span><span style="color: #000000;">)
</span><span style="color: #008080;">4</span><span style="color: #000000;"><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Dispose_3605_62_82_135_Open_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Dispose_3605_62_82_135_Open_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Dispose_3605_62_82_135_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Dispose_3605_62_82_135_Closed_Text').style.display='inline';"/><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Dispose_3605_62_82_135_Closed_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Dispose_3605_62_82_135_Closed_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Dispose_3605_62_82_135_Open_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Dispose_3605_62_82_135_Open_Text').style.display='inline';"/>            </span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Dispose_3605_62_82_135_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_Dispose_3605_62_82_135_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">5</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                objectServer.Close();
</span><span style="color: #008080;">6</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>            }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">7</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">8</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            objectServer </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">null</span><span style="color: #000000;">;
</span><span style="color: #008080;">9</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/>        }</span></span></div></pre></div></div>

<p></code></p>

</span>

<span name="cs_wiki_filter" csw_filters="vb">

<div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">Db4oHttpModule.vb: <span class="fscMemberName">Application_EndRequest</span></span></div><div class="fscCode"><pre ID="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_Application_EndRequest_3749_77"><div><!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><span style="color: #008080;">01</span><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_Application_EndRequest_3749_77_8_540_Open_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_Application_EndRequest_3749_77_8_540_Open_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_Application_EndRequest_3749_77_8_540_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_Application_EndRequest_3749_77_8_540_Closed_Text').style.display='inline';"/><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_Application_EndRequest_3749_77_8_540_Closed_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_Application_EndRequest_3749_77_8_540_Closed_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_Application_EndRequest_3749_77_8_540_Open_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_Application_EndRequest_3749_77_8_540_Open_Text').style.display='inline';"/><span style="color: #0000FF;">Private</span><span style="color: #000000;"> </span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_Application_EndRequest_3749_77_8_540_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Sub Application_EndRequest()</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_Application_EndRequest_3749_77_8_540_Open_Text"><span style="color: #0000FF;">Sub</span><span style="color: #000000;"> Application_EndRequest(</span><span style="color: #0000FF;">ByVal</span><span style="color: #000000;"> sender </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Object</span><span style="color: #000000;">, </span><span style="color: #0000FF;">ByVal</span><span style="color: #000000;"> e </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> EventArgs)
</span><span style="color: #008080;">02</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">Dim</span><span style="color: #000000;"> application </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> HttpApplication </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">CType</span><span style="color: #000000;">(sender, HttpApplication)
</span><span style="color: #008080;">03</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">Dim</span><span style="color: #000000;"> context </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> HttpContext </span><span style="color: #000000;">=</span><span style="color: #000000;"> application.Context
</span><span style="color: #008080;">04</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">Dim</span><span style="color: #000000;"> objectClient </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> IObjectContainer </span><span style="color: #000000;">=</span><span style="color: #000000;"> TryCast(context.Items(KEY_DB4O_CLIENT), IObjectContainer)
</span><span style="color: #008080;">05</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">If</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Not</span><span style="color: #000000;"> (objectClient </span><span style="color: #0000FF;">Is</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Nothing</span><span style="color: #000000;">) </span><span style="color: #0000FF;">Then</span><span style="color: #000000;">
</span><span style="color: #008080;">06</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                objectClient.Close()
</span><span style="color: #008080;">07</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">End</span><span style="color: #000000;"> </span><span style="color: #0000FF;">If</span><span style="color: #000000;">
</span><span style="color: #008080;">08</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            objectClient </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Nothing</span><span style="color: #000000;">
</span><span style="color: #008080;">09</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            context.Items(KEY_DB4O_CLIENT) </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Nothing</span><span style="color: #000000;">
</span><span style="color: #008080;">10</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/>        </span><span style="color: #0000FF;">End Sub</span></span></div></pre></div></div>

<div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">Db4oHttpModule.vb: <span class="fscMemberName">Dispose</span></span></div><div class="fscCode"><pre ID="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_Dispose_3830_62"><div><!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><span style="color: #008080;">1</span><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_Dispose_3830_62_7_208_Open_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_Dispose_3830_62_7_208_Open_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_Dispose_3830_62_7_208_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_Dispose_3830_62_7_208_Closed_Text').style.display='inline';"/><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_Dispose_3830_62_7_208_Closed_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_Dispose_3830_62_7_208_Closed_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_Dispose_3830_62_7_208_Open_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_Dispose_3830_62_7_208_Open_Text').style.display='inline';"/><span style="color: #0000FF;">Public</span><span style="color: #000000;"> </span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_Dispose_3830_62_7_208_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Sub Dispose()</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_Dispose_3830_62_7_208_Open_Text"><span style="color: #0000FF;">Sub</span><span style="color: #000000;"> Dispose() </span><span style="color: #0000FF;">Implements</span><span style="color: #000000;"> IHttpModule.Dispose
</span><span style="color: #008080;">2</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">If</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Not</span><span style="color: #000000;"> (objectServer </span><span style="color: #0000FF;">Is</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Nothing</span><span style="color: #000000;">) </span><span style="color: #0000FF;">Then</span><span style="color: #000000;">
</span><span style="color: #008080;">3</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                objectServer.Close()
</span><span style="color: #008080;">4</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">End</span><span style="color: #000000;"> </span><span style="color: #0000FF;">If</span><span style="color: #000000;">
</span><span style="color: #008080;">5</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            objectServer </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Nothing</span><span style="color: #000000;">
</span><span style="color: #008080;">6</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/>        </span><span style="color: #0000FF;">End Sub</span></span></div></pre></div></div>

<p></code></p>

</span>

<p>This is basically all the functionality that is required
from db4o module. In order to make use of it we need to register it in
<a href="web.config.html" class="wikiLink">Web.Config</a>:</p>

<p><code>&lt;httpModules&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;add type="Db4objects.Db4odoc.Web.Data.Db4oHttpModule"
name="Db4oHttpModule" /&gt;<br>
&lt;/httpModules&gt;</code></p>


<p>With the help of the created module we can access db4o
database fairly easy:</p>

<span name="cs_wiki_filter" csw_filters="cs">

<div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">Default.aspx.cs: <span class="fscMemberName">SaveMessage</span></span></div><div class="fscCode"><pre ID="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsDefault.Aspx.Cs_Default.Aspx.Cs_SaveMessage_4412_51"><div><!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><span style="color: #008080;">1</span><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/><span style="color: #0000FF;">public</span><span style="color: #000000;"> </span><span style="color: #0000FF;">static</span><span style="color: #000000;"> </span><span style="color: #0000FF;">void</span><span style="color: #000000;"> SaveMessage(</span><span style="color: #0000FF;">string</span><span style="color: #000000;"> username, </span><span style="color: #0000FF;">string</span><span style="color: #000000;"> text)
</span><span style="color: #008080;">2</span><span style="color: #000000;"><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsDefault.Aspx.Cs_Default.Aspx.Cs_SaveMessage_4412_51_69_179_Open_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsDefault.Aspx.Cs_Default.Aspx.Cs_SaveMessage_4412_51_69_179_Open_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsDefault.Aspx.Cs_Default.Aspx.Cs_SaveMessage_4412_51_69_179_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsDefault.Aspx.Cs_Default.Aspx.Cs_SaveMessage_4412_51_69_179_Closed_Text').style.display='inline';"/><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsDefault.Aspx.Cs_Default.Aspx.Cs_SaveMessage_4412_51_69_179_Closed_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsDefault.Aspx.Cs_Default.Aspx.Cs_SaveMessage_4412_51_69_179_Closed_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsDefault.Aspx.Cs_Default.Aspx.Cs_SaveMessage_4412_51_69_179_Open_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsDefault.Aspx.Cs_Default.Aspx.Cs_SaveMessage_4412_51_69_179_Open_Text').style.display='inline';"/>        </span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsDefault.Aspx.Cs_Default.Aspx.Cs_SaveMessage_4412_51_69_179_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsDefault.Aspx.Cs_Default.Aspx.Cs_SaveMessage_4412_51_69_179_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">3</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            Message msg </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">new</span><span style="color: #000000;"> Message(username, text);
</span><span style="color: #008080;">4</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            Db4oHttpModule.Client.Set(msg);
</span><span style="color: #008080;">5</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/>        }</span></span></div></pre></div></div> </p>

<div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">Default.aspx.cs: <span class="fscMemberName">RetrieveAll</span></span></div><div class="fscCode"><pre ID="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsDefault.Aspx.Cs_Default.Aspx.Cs_RetrieveAll_4472_55"><div><!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><span style="color: #008080;">1</span><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/><span style="color: #0000FF;">public</span><span style="color: #000000;"> </span><span style="color: #0000FF;">static</span><span style="color: #000000;"> IList RetrieveAll()
</span><span style="color: #008080;">2</span><span style="color: #000000;"><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsDefault.Aspx.Cs_Default.Aspx.Cs_RetrieveAll_4472_55_42_116_Open_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsDefault.Aspx.Cs_Default.Aspx.Cs_RetrieveAll_4472_55_42_116_Open_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsDefault.Aspx.Cs_Default.Aspx.Cs_RetrieveAll_4472_55_42_116_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsDefault.Aspx.Cs_Default.Aspx.Cs_RetrieveAll_4472_55_42_116_Closed_Text').style.display='inline';"/><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsDefault.Aspx.Cs_Default.Aspx.Cs_RetrieveAll_4472_55_42_116_Closed_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsDefault.Aspx.Cs_Default.Aspx.Cs_RetrieveAll_4472_55_42_116_Closed_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsDefault.Aspx.Cs_Default.Aspx.Cs_RetrieveAll_4472_55_42_116_Open_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsDefault.Aspx.Cs_Default.Aspx.Cs_RetrieveAll_4472_55_42_116_Open_Text').style.display='inline';"/>        </span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsDefault.Aspx.Cs_Default.Aspx.Cs_RetrieveAll_4472_55_42_116_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsDefault.Aspx.Cs_Default.Aspx.Cs_RetrieveAll_4472_55_42_116_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">3</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">return</span><span style="color: #000000;"> Db4oHttpModule.Client.Get(</span><span style="color: #0000FF;">typeof</span><span style="color: #000000;">(Message));
</span><span style="color: #008080;">4</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/>        }</span></span></div></pre></div></div>

<div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">Default.aspx.cs: <span class="fscMemberName">DeleteAll</span></span></div><div class="fscCode"><pre ID="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsDefault.Aspx.Cs_Default.Aspx.Cs_DeleteAll_4531_53"><div><!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><span style="color: #008080;">1</span><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/><span style="color: #0000FF;">public</span><span style="color: #000000;"> </span><span style="color: #0000FF;">static</span><span style="color: #000000;"> </span><span style="color: #0000FF;">void</span><span style="color: #000000;"> DeleteAll()
</span><span style="color: #008080;">2</span><span style="color: #000000;"><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsDefault.Aspx.Cs_Default.Aspx.Cs_DeleteAll_4531_53_39_248_Open_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsDefault.Aspx.Cs_Default.Aspx.Cs_DeleteAll_4531_53_39_248_Open_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsDefault.Aspx.Cs_Default.Aspx.Cs_DeleteAll_4531_53_39_248_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsDefault.Aspx.Cs_Default.Aspx.Cs_DeleteAll_4531_53_39_248_Closed_Text').style.display='inline';"/><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsDefault.Aspx.Cs_Default.Aspx.Cs_DeleteAll_4531_53_39_248_Closed_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsDefault.Aspx.Cs_Default.Aspx.Cs_DeleteAll_4531_53_39_248_Closed_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsDefault.Aspx.Cs_Default.Aspx.Cs_DeleteAll_4531_53_39_248_Open_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsDefault.Aspx.Cs_Default.Aspx.Cs_DeleteAll_4531_53_39_248_Open_Text').style.display='inline';"/>        </span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsDefault.Aspx.Cs_Default.Aspx.Cs_DeleteAll_4531_53_39_248_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsDefault.Aspx.Cs_Default.Aspx.Cs_DeleteAll_4531_53_39_248_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">3</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            IList messages </span><span style="color: #000000;">=</span><span style="color: #000000;"> Db4oHttpModule.Client.Get(</span><span style="color: #0000FF;">typeof</span><span style="color: #000000;">(Message));
</span><span style="color: #008080;">4</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">foreach</span><span style="color: #000000;"> (Message msg </span><span style="color: #0000FF;">in</span><span style="color: #000000;"> messages)
</span><span style="color: #008080;">5</span><span style="color: #000000;"><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsDefault.Aspx.Cs_Default.Aspx.Cs_DeleteAll_4531_53_172_238_Open_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsDefault.Aspx.Cs_Default.Aspx.Cs_DeleteAll_4531_53_172_238_Open_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsDefault.Aspx.Cs_Default.Aspx.Cs_DeleteAll_4531_53_172_238_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsDefault.Aspx.Cs_Default.Aspx.Cs_DeleteAll_4531_53_172_238_Closed_Text').style.display='inline';"/><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsDefault.Aspx.Cs_Default.Aspx.Cs_DeleteAll_4531_53_172_238_Closed_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsDefault.Aspx.Cs_Default.Aspx.Cs_DeleteAll_4531_53_172_238_Closed_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsDefault.Aspx.Cs_Default.Aspx.Cs_DeleteAll_4531_53_172_238_Open_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsDefault.Aspx.Cs_Default.Aspx.Cs_DeleteAll_4531_53_172_238_Open_Text').style.display='inline';"/>            </span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsDefault.Aspx.Cs_Default.Aspx.Cs_DeleteAll_4531_53_172_238_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsDefault.Aspx.Cs_Default.Aspx.Cs_DeleteAll_4531_53_172_238_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">6</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                Db4oHttpModule.Client.Delete(msg);
</span><span style="color: #008080;">7</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>            }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">8</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/>        }</span></span></div></pre></div></div>

</span>

<span name="cs_wiki_filter" csw_filters="vb">

<div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">Default.aspx.vb: <span class="fscMemberName">SaveMessage</span></span></div><div class="fscCode"><pre ID="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsDefault.Aspx.Vb_Default.Aspx.Vb_SaveMessage_4648_51"><div><!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><span style="color: #008080;">1</span><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsDefault.Aspx.Vb_Default.Aspx.Vb_SaveMessage_4648_51_14_198_Open_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsDefault.Aspx.Vb_Default.Aspx.Vb_SaveMessage_4648_51_14_198_Open_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsDefault.Aspx.Vb_Default.Aspx.Vb_SaveMessage_4648_51_14_198_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsDefault.Aspx.Vb_Default.Aspx.Vb_SaveMessage_4648_51_14_198_Closed_Text').style.display='inline';"/><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsDefault.Aspx.Vb_Default.Aspx.Vb_SaveMessage_4648_51_14_198_Closed_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsDefault.Aspx.Vb_Default.Aspx.Vb_SaveMessage_4648_51_14_198_Closed_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsDefault.Aspx.Vb_Default.Aspx.Vb_SaveMessage_4648_51_14_198_Open_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsDefault.Aspx.Vb_Default.Aspx.Vb_SaveMessage_4648_51_14_198_Open_Text').style.display='inline';"/><span style="color: #0000FF;">Public</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Shared</span><span style="color: #000000;"> </span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsDefault.Aspx.Vb_Default.Aspx.Vb_SaveMessage_4648_51_14_198_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Sub SaveMessage()</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsDefault.Aspx.Vb_Default.Aspx.Vb_SaveMessage_4648_51_14_198_Open_Text"><span style="color: #0000FF;">Sub</span><span style="color: #000000;"> SaveMessage(</span><span style="color: #0000FF;">ByVal</span><span style="color: #000000;"> username </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> </span><span style="color: #0000FF;">String</span><span style="color: #000000;">, </span><span style="color: #0000FF;">ByVal</span><span style="color: #000000;"> text </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> </span><span style="color: #0000FF;">String</span><span style="color: #000000;">)
</span><span style="color: #008080;">2</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">3</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">Dim</span><span style="color: #000000;"> msg </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> Message </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">New</span><span style="color: #000000;"> Message(username, text)
</span><span style="color: #008080;">4</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            Db4oHttpModule.Client.Set(msg)
</span><span style="color: #008080;">5</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/>        </span><span style="color: #0000FF;">End Sub</span></span></div></pre></div></div> </p>

<div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">Default.aspx.vb: <span class="fscMemberName">RetrieveAll</span></span></div><div class="fscCode"><pre ID="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsDefault.Aspx.Vb_Default.Aspx.Vb_RetrieveAll_4708_55"><div><!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><span style="color: #008080;">1</span><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsDefault.Aspx.Vb_Default.Aspx.Vb_RetrieveAll_4708_55_14_129_Open_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsDefault.Aspx.Vb_Default.Aspx.Vb_RetrieveAll_4708_55_14_129_Open_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsDefault.Aspx.Vb_Default.Aspx.Vb_RetrieveAll_4708_55_14_129_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsDefault.Aspx.Vb_Default.Aspx.Vb_RetrieveAll_4708_55_14_129_Closed_Text').style.display='inline';"/><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsDefault.Aspx.Vb_Default.Aspx.Vb_RetrieveAll_4708_55_14_129_Closed_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsDefault.Aspx.Vb_Default.Aspx.Vb_RetrieveAll_4708_55_14_129_Closed_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsDefault.Aspx.Vb_Default.Aspx.Vb_RetrieveAll_4708_55_14_129_Open_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsDefault.Aspx.Vb_Default.Aspx.Vb_RetrieveAll_4708_55_14_129_Open_Text').style.display='inline';"/><span style="color: #0000FF;">Public</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Shared</span><span style="color: #000000;"> </span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsDefault.Aspx.Vb_Default.Aspx.Vb_RetrieveAll_4708_55_14_129_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Function RetrieveAll()</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsDefault.Aspx.Vb_Default.Aspx.Vb_RetrieveAll_4708_55_14_129_Open_Text"><span style="color: #0000FF;">Function</span><span style="color: #000000;"> RetrieveAll() </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> IList
</span><span style="color: #008080;">2</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">Return</span><span style="color: #000000;"> Db4oHttpModule.Client.Get(</span><span style="color: #0000FF;">GetType</span><span style="color: #000000;">(Message))
</span><span style="color: #008080;">3</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/>        </span><span style="color: #0000FF;">End Function</span></span></div></pre></div></div>

<div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">Default.aspx.vb: <span class="fscMemberName">DeleteAll</span></span></div><div class="fscCode"><pre ID="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsDefault.Aspx.Vb_Default.Aspx.Vb_DeleteAll_4767_53"><div><!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><span style="color: #008080;">1</span><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsDefault.Aspx.Vb_Default.Aspx.Vb_DeleteAll_4767_53_14_242_Open_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsDefault.Aspx.Vb_Default.Aspx.Vb_DeleteAll_4767_53_14_242_Open_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsDefault.Aspx.Vb_Default.Aspx.Vb_DeleteAll_4767_53_14_242_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsDefault.Aspx.Vb_Default.Aspx.Vb_DeleteAll_4767_53_14_242_Closed_Text').style.display='inline';"/><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsDefault.Aspx.Vb_Default.Aspx.Vb_DeleteAll_4767_53_14_242_Closed_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsDefault.Aspx.Vb_Default.Aspx.Vb_DeleteAll_4767_53_14_242_Closed_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsDefault.Aspx.Vb_Default.Aspx.Vb_DeleteAll_4767_53_14_242_Open_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsDefault.Aspx.Vb_Default.Aspx.Vb_DeleteAll_4767_53_14_242_Open_Text').style.display='inline';"/><span style="color: #0000FF;">Public</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Shared</span><span style="color: #000000;"> </span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsDefault.Aspx.Vb_Default.Aspx.Vb_DeleteAll_4767_53_14_242_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Sub DeleteAll()</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsDefault.Aspx.Vb_Default.Aspx.Vb_DeleteAll_4767_53_14_242_Open_Text"><span style="color: #0000FF;">Sub</span><span style="color: #000000;"> DeleteAll()
</span><span style="color: #008080;">2</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">3</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">Dim</span><span style="color: #000000;"> messages </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> IList </span><span style="color: #000000;">=</span><span style="color: #000000;"> Db4oHttpModule.Client.Get(</span><span style="color: #0000FF;">GetType</span><span style="color: #000000;">(Message))
</span><span style="color: #008080;">4</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">For</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Each</span><span style="color: #000000;"> msg </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> Message </span><span style="color: #0000FF;">In</span><span style="color: #000000;"> messages
</span><span style="color: #008080;">5</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                Db4oHttpModule.Client.Delete(msg)
</span><span style="color: #008080;">6</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">Next</span><span style="color: #000000;">
</span><span style="color: #008080;">7</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">8</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/>        </span><span style="color: #0000FF;">End Sub</span></span></div></pre></div></div>

</span>

<p>To test the whole application you can use the following simple form:<br></p>

<span name="cs_wiki_filter" csw_filters="cs">

<div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">default.aspx</span></div><div class="fscCode"><pre ID="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx_Default.Aspx_4967_40"><div><!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><span style="color: #008080;">01</span><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx_Default.Aspx_4967_40_2_117_Open_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx_Default.Aspx_4967_40_2_117_Open_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx_Default.Aspx_4967_40_2_117_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx_Default.Aspx_4967_40_2_117_Closed_Text').style.display='inline';"/><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx_Default.Aspx_4967_40_2_117_Closed_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx_Default.Aspx_4967_40_2_117_Closed_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx_Default.Aspx_4967_40_2_117_Open_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx_Default.Aspx_4967_40_2_117_Open_Text').style.display='inline';"/><span style="background-color: #FFFF00; color: #000000;">&lt;%</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx_Default.Aspx_4967_40_2_117_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx_Default.Aspx_4967_40_2_117_Open_Text"><span style="background-color: #F5F5F5; color: #000000;">@ Page Language</span><span style="background-color: #F5F5F5; color: #000000;">=</span><span style="background-color: #F5F5F5; color: #800000;">&quot;</span><span style="background-color: #F5F5F5; color: #800000;">C#</span><span style="background-color: #F5F5F5; color: #800000;">&quot;</span><span style="background-color: #F5F5F5; color: #000000;"> AutoEventWireup</span><span style="background-color: #F5F5F5; color: #000000;">=</span><span style="background-color: #F5F5F5; color: #800000;">&quot;</span><span style="background-color: #F5F5F5; color: #800000;">true</span><span style="background-color: #F5F5F5; color: #800000;">&quot;</span><span style="background-color: #F5F5F5; color: #000000;">  CodeFile</span><span style="background-color: #F5F5F5; color: #000000;">=</span><span style="background-color: #F5F5F5; color: #800000;">&quot;</span><span style="background-color: #F5F5F5; color: #800000;">Default.aspx.cs</span><span style="background-color: #F5F5F5; color: #800000;">&quot;</span><span style="background-color: #F5F5F5; color: #000000;"> Inherits</span><span style="background-color: #F5F5F5; color: #000000;">=</span><span style="background-color: #F5F5F5; color: #800000;">&quot;</span><span style="background-color: #F5F5F5; color: #800000;">Db4objects.Db4odoc.Web._Default</span><span style="background-color: #F5F5F5; color: #800000;">&quot;</span><span style="background-color: #F5F5F5; color: #000000;"> </span></span><span style="background-color: #FFFF00; color: #000000;">%&gt;</span><span style="color: #000000;">
</span><span style="color: #008080;">02</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>
</span><span style="color: #008080;">03</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">&lt;!</span><span style="color: #FF00FF;">DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
</span><span style="color: #008080;">04</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>
</span><span style="color: #008080;">05</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">html </span><span style="color: #FF0000;">xmlns</span><span style="color: #0000FF;">=&quot;http://www.w3.org/1999/xhtml&quot;</span><span style="color: #FF0000;"> </span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
</span><span style="color: #008080;">06</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">head</span><span style="color: #0000FF;">&gt;&lt;</span><span style="color: #800000;">title</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">Guestbook.aspx</span><span style="color: #0000FF;">&lt;/</span><span style="color: #800000;">title</span><span style="color: #0000FF;">&gt;&lt;/</span><span style="color: #800000;">head</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
</span><span style="color: #008080;">07</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">body</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
</span><span style="color: #008080;">08</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>
</span><span style="color: #008080;">09</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">form </span><span style="color: #FF0000;">id</span><span style="color: #0000FF;">=&quot;Form1&quot;</span><span style="color: #FF0000;"> runat</span><span style="color: #0000FF;">=&quot;Server&quot;</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
</span><span style="color: #008080;">10</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">b</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">Username:</span><span style="color: #0000FF;">&lt;/</span><span style="color: #800000;">b</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
</span><span style="color: #008080;">11</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">br</span><span style="color: #0000FF;">&gt;&lt;</span><span style="color: #800000;">input </span><span style="color: #FF0000;">id</span><span style="color: #0000FF;">=&quot;username&quot;</span><span style="color: #FF0000;"> type</span><span style="color: #0000FF;">=&quot;text&quot;</span><span style="color: #FF0000;"> size</span><span style="color: #0000FF;">=&quot;30&quot;</span><span style="color: #FF0000;"> runat</span><span style="color: #0000FF;">=&quot;Server&quot;</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
</span><span style="color: #008080;">12</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>
</span><span style="color: #008080;">13</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">p</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
</span><span style="color: #008080;">14</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>
</span><span style="color: #008080;">15</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">b</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">Message:</span><span style="color: #0000FF;">&lt;/</span><span style="color: #800000;">b</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
</span><span style="color: #008080;">16</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">br</span><span style="color: #0000FF;">&gt;&lt;</span><span style="color: #800000;">textarea </span><span style="color: #FF0000;">id</span><span style="color: #0000FF;">=&quot;message&quot;</span><span style="color: #FF0000;"> cols</span><span style="color: #0000FF;">=60 </span><span style="color: #FF0000;">rows</span><span style="color: #0000FF;">=10 </span><span style="color: #FF0000;">runat</span><span style="color: #0000FF;">=&quot;Server&quot;</span><span style="color: #0000FF;">&gt;&lt;/</span><span style="color: #800000;">textarea</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
</span><span style="color: #008080;">17</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>
</span><span style="color: #008080;">18</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">p</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
</span><span style="color: #008080;">19</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>
</span><span style="color: #008080;">20</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">input </span><span style="color: #FF0000;">id</span><span style="color: #0000FF;">=&quot;BtnGet&quot;</span><span style="color: #FF0000;"> type</span><span style="color: #0000FF;">=&quot;submit&quot;</span><span style="color: #FF0000;"> value</span><span style="color: #0000FF;">=&quot;Get messages&quot;</span><span style="color: #FF0000;">
</span><span style="color: #008080;">21</span><span style="color: #FF0000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>OnServerClick</span><span style="color: #0000FF;">=&quot;ButtonGet_Click&quot;</span><span style="color: #FF0000;"> runat</span><span style="color: #0000FF;">=&quot;Server&quot;</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
</span><span style="color: #008080;">22</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>
</span><span style="color: #008080;">23</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">input </span><span style="color: #FF0000;">id</span><span style="color: #0000FF;">=&quot;BtnSet&quot;</span><span style="color: #FF0000;"> type</span><span style="color: #0000FF;">=&quot;submit&quot;</span><span style="color: #FF0000;"> value</span><span style="color: #0000FF;">=&quot;Add message&quot;</span><span style="color: #FF0000;">
</span><span style="color: #008080;">24</span><span style="color: #FF0000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>OnServerClick</span><span style="color: #0000FF;">=&quot;ButtonSet_Click&quot;</span><span style="color: #FF0000;"> runat</span><span style="color: #0000FF;">=&quot;Server&quot;</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
</span><span style="color: #008080;">25</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>
</span><span style="color: #008080;">26</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">input </span><span style="color: #FF0000;">id</span><span style="color: #0000FF;">=&quot;BtnClear&quot;</span><span style="color: #FF0000;"> type</span><span style="color: #0000FF;">=&quot;submit&quot;</span><span style="color: #FF0000;"> value</span><span style="color: #0000FF;">=&quot;Clear messages&quot;</span><span style="color: #FF0000;">
</span><span style="color: #008080;">27</span><span style="color: #FF0000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>OnServerClick</span><span style="color: #0000FF;">=&quot;ButtonClear_Click&quot;</span><span style="color: #FF0000;"> runat</span><span style="color: #0000FF;">=&quot;Server&quot;</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
</span><span style="color: #008080;">28</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>
</span><span style="color: #008080;">29</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">span </span><span style="color: #FF0000;">id</span><span style="color: #0000FF;">=&quot;entries&quot;</span><span style="color: #FF0000;"> runat</span><span style="color: #0000FF;">=&quot;Server&quot;</span><span style="color: #0000FF;">/&gt;</span><span style="color: #000000;">
</span><span style="color: #008080;">30</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>
</span><span style="color: #008080;">31</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">&lt;/</span><span style="color: #800000;">form</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
</span><span style="color: #008080;">32</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>
</span><span style="color: #008080;">33</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">&lt;/</span><span style="color: #800000;">body</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
</span><span style="color: #008080;">34</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">&lt;/</span><span style="color: #800000;">html</span><span style="color: #0000FF;">&gt;</span></div></pre></div></div>

<div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">default.aspx.cs</span></div><div class="fscCode"><pre ID="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39"><div><!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><span style="color: #008080;">01</span><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/><span style="color: #0000FF;">using</span><span style="color: #000000;"> System;
</span><span style="color: #008080;">02</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">using</span><span style="color: #000000;"> System.Collections;
</span><span style="color: #008080;">03</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">using</span><span style="color: #000000;"> Db4objects.Db4odoc.Web.Data;
</span><span style="color: #008080;">04</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>
</span><span style="color: #008080;">05</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">namespace</span><span style="color: #000000;"> Db4objects.Db4odoc.Web
</span><span style="color: #008080;">06</span><span style="color: #000000;"><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_109_1660_Open_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_109_1660_Open_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_109_1660_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_109_1660_Closed_Text').style.display='inline';"/><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_109_1660_Closed_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_109_1660_Closed_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_109_1660_Open_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_109_1660_Open_Text').style.display='inline';"/></span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_109_1660_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_109_1660_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">07</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">08</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>    </span><span style="color: #0000FF;">public</span><span style="color: #000000;"> </span><span style="color: #0000FF;">partial</span><span style="color: #000000;"> </span><span style="color: #0000FF;">class</span><span style="color: #000000;"> _Default : System.Web.UI.Page
</span><span style="color: #008080;">09</span><span style="color: #000000;"><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_171_1658_Open_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_171_1658_Open_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_171_1658_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_171_1658_Closed_Text').style.display='inline';"/><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_171_1658_Closed_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_171_1658_Closed_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_171_1658_Open_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_171_1658_Open_Text').style.display='inline';"/>    </span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_171_1658_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_171_1658_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">10</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>        </span><span style="color: #0000FF;">protected</span><span style="color: #000000;"> </span><span style="color: #0000FF;">void</span><span style="color: #000000;"> Page_Load(</span><span style="color: #0000FF;">object</span><span style="color: #000000;"> sender, EventArgs e)
</span><span style="color: #008080;">11</span><span style="color: #000000;"><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_242_254_Open_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_242_254_Open_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_242_254_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_242_254_Closed_Text').style.display='inline';"/><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_242_254_Closed_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_242_254_Closed_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_242_254_Open_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_242_254_Open_Text').style.display='inline';"/>        </span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_242_254_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_242_254_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">12</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">13</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>        }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">14</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">15</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>        </span><span style="color: #0000FF;">public</span><span style="color: #000000;"> </span><span style="color: #0000FF;">static</span><span style="color: #000000;"> IList RetrieveAll()
</span><span style="color: #008080;">16</span><span style="color: #000000;"><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_306_380_Open_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_306_380_Open_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_306_380_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_306_380_Closed_Text').style.display='inline';"/><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_306_380_Closed_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_306_380_Closed_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_306_380_Open_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_306_380_Open_Text').style.display='inline';"/>        </span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_306_380_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_306_380_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">17</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">return</span><span style="color: #000000;"> Db4oHttpModule.Client.Get(</span><span style="color: #0000FF;">typeof</span><span style="color: #000000;">(Message));
</span><span style="color: #008080;">18</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>        }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">19</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>        </span><span style="color: #008000;">//</span><span style="color: #008000;"> end RetrieveAll</span><span style="color: #008000;">
</span><span style="color: #008080;">20</span><span style="color: #008000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">
</span><span style="color: #008080;">21</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>        </span><span style="color: #0000FF;">public</span><span style="color: #000000;"> </span><span style="color: #0000FF;">static</span><span style="color: #000000;"> </span><span style="color: #0000FF;">void</span><span style="color: #000000;"> DeleteAll()
</span><span style="color: #008080;">22</span><span style="color: #000000;"><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_456_665_Open_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_456_665_Open_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_456_665_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_456_665_Closed_Text').style.display='inline';"/><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_456_665_Closed_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_456_665_Closed_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_456_665_Open_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_456_665_Open_Text').style.display='inline';"/>        </span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_456_665_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_456_665_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">23</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            IList messages </span><span style="color: #000000;">=</span><span style="color: #000000;"> Db4oHttpModule.Client.Get(</span><span style="color: #0000FF;">typeof</span><span style="color: #000000;">(Message));
</span><span style="color: #008080;">24</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">foreach</span><span style="color: #000000;"> (Message msg </span><span style="color: #0000FF;">in</span><span style="color: #000000;"> messages)
</span><span style="color: #008080;">25</span><span style="color: #000000;"><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_589_655_Open_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_589_655_Open_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_589_655_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_589_655_Closed_Text').style.display='inline';"/><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_589_655_Closed_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_589_655_Closed_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_589_655_Open_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_589_655_Open_Text').style.display='inline';"/>            </span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_589_655_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_589_655_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">26</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                Db4oHttpModule.Client.Delete(msg);
</span><span style="color: #008080;">27</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>            }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">28</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>        }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">29</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>        </span><span style="color: #008000;">//</span><span style="color: #008000;"> end DeleteAll</span><span style="color: #008000;">
</span><span style="color: #008080;">30</span><span style="color: #008000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">
</span><span style="color: #008080;">31</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>        </span><span style="color: #0000FF;">public</span><span style="color: #000000;"> </span><span style="color: #0000FF;">static</span><span style="color: #000000;"> </span><span style="color: #0000FF;">void</span><span style="color: #000000;"> SaveMessage(</span><span style="color: #0000FF;">string</span><span style="color: #000000;"> username, </span><span style="color: #0000FF;">string</span><span style="color: #000000;"> text)
</span><span style="color: #008080;">32</span><span style="color: #000000;"><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_769_879_Open_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_769_879_Open_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_769_879_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_769_879_Closed_Text').style.display='inline';"/><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_769_879_Closed_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_769_879_Closed_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_769_879_Open_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_769_879_Open_Text').style.display='inline';"/>        </span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_769_879_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_769_879_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">33</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            Message msg </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">new</span><span style="color: #000000;"> Message(username, text);
</span><span style="color: #008080;">34</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            Db4oHttpModule.Client.Set(msg);
</span><span style="color: #008080;">35</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>        }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">36</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>        </span><span style="color: #008000;">//</span><span style="color: #008000;"> end SaveMessage</span><span style="color: #008000;">
</span><span style="color: #008080;">37</span><span style="color: #008000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">
</span><span style="color: #008080;">38</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>        </span><span style="color: #0000FF;">public</span><span style="color: #000000;"> </span><span style="color: #0000FF;">void</span><span style="color: #000000;"> ButtonGet_Click(Object s, EventArgs e)
</span><span style="color: #008080;">39</span><span style="color: #000000;"><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_975_1213_Open_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_975_1213_Open_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_975_1213_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_975_1213_Closed_Text').style.display='inline';"/><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_975_1213_Closed_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_975_1213_Closed_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_975_1213_Open_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_975_1213_Open_Text').style.display='inline';"/>        </span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_975_1213_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_975_1213_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">40</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            entries.InnerHtml </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #800000;">&quot;&quot;</span><span style="color: #000000;">;
</span><span style="color: #008080;">41</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            IList list </span><span style="color: #000000;">=</span><span style="color: #000000;"> RetrieveAll();
</span><span style="color: #008080;">42</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">foreach</span><span style="color: #000000;"> (Message msg </span><span style="color: #0000FF;">in</span><span style="color: #000000;"> list)
</span><span style="color: #008080;">43</span><span style="color: #000000;"><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_1107_1203_Open_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_1107_1203_Open_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_1107_1203_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_1107_1203_Closed_Text').style.display='inline';"/><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_1107_1203_Closed_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_1107_1203_Closed_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_1107_1203_Open_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_1107_1203_Open_Text').style.display='inline';"/>            </span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_1107_1203_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_1107_1203_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">44</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                entries.InnerHtml </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #800000;">&quot;</span><span style="color: #800000;">&lt;hr&gt;</span><span style="color: #800000;">&quot;</span><span style="color: #000000;"> </span><span style="color: #000000;">+</span><span style="color: #000000;"> msg.ToString() </span><span style="color: #000000;">+</span><span style="color: #000000;"> entries.InnerHtml;
</span><span style="color: #008080;">45</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>            }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">46</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>        }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">47</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>        </span><span style="color: #008000;">//</span><span style="color: #008000;"> end ButtonGet_Click</span><span style="color: #008000;">
</span><span style="color: #008080;">48</span><span style="color: #008000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">
</span><span style="color: #008080;">49</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>        </span><span style="color: #0000FF;">public</span><span style="color: #000000;"> </span><span style="color: #0000FF;">void</span><span style="color: #000000;"> ButtonSet_Click(Object s, EventArgs e)
</span><span style="color: #008080;">50</span><span style="color: #000000;"><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_1313_1445_Open_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_1313_1445_Open_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_1313_1445_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_1313_1445_Closed_Text').style.display='inline';"/><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_1313_1445_Closed_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_1313_1445_Closed_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_1313_1445_Open_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_1313_1445_Open_Text').style.display='inline';"/>        </span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_1313_1445_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_1313_1445_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">51</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            SaveMessage(username.Value, message.Value);
</span><span style="color: #008080;">52</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            username.Value </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #800000;">&quot;&quot;</span><span style="color: #000000;">;
</span><span style="color: #008080;">53</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            message.Value </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #800000;">&quot;&quot;</span><span style="color: #000000;">;
</span><span style="color: #008080;">54</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>        }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">55</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>        </span><span style="color: #008000;">//</span><span style="color: #008000;"> end ButtonSet_Click</span><span style="color: #008000;">
</span><span style="color: #008080;">56</span><span style="color: #008000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">
</span><span style="color: #008080;">57</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>        </span><span style="color: #0000FF;">public</span><span style="color: #000000;"> </span><span style="color: #0000FF;">void</span><span style="color: #000000;"> ButtonClear_Click(Object s, EventArgs e)
</span><span style="color: #008080;">58</span><span style="color: #000000;"><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_1547_1619_Open_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_1547_1619_Open_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_1547_1619_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_1547_1619_Closed_Text').style.display='inline';"/><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_1547_1619_Closed_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_1547_1619_Closed_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_1547_1619_Open_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_1547_1619_Open_Text').style.display='inline';"/>        </span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_1547_1619_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.Zipsdefault.Aspx.Cs_Default.Aspx.Cs_5011_39_1547_1619_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">59</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            DeleteAll();
</span><span style="color: #008080;">60</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            entries.InnerHtml </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #800000;">&quot;&quot;</span><span style="color: #000000;">;
</span><span style="color: #008080;">61</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>        }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">62</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>        </span><span style="color: #008000;">//</span><span style="color: #008000;"> end ButtonClear_Click</span><span style="color: #008000;">
</span><span style="color: #008080;">63</span><span style="color: #008000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/></span><span style="color: #000000;">    }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">64</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/>}</span></span></div></pre></div></div> </p>

</span>

<span name="cs_wiki_filter" csw_filters="vb">

<div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">default.aspx</span></div><div class="fscCode"><pre ID="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx_Default.Aspx_5119_40"><div><!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><span style="color: #008080;">01</span><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx_Default.Aspx_5119_40_2_117_Open_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx_Default.Aspx_5119_40_2_117_Open_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx_Default.Aspx_5119_40_2_117_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx_Default.Aspx_5119_40_2_117_Closed_Text').style.display='inline';"/><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx_Default.Aspx_5119_40_2_117_Closed_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx_Default.Aspx_5119_40_2_117_Closed_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx_Default.Aspx_5119_40_2_117_Open_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx_Default.Aspx_5119_40_2_117_Open_Text').style.display='inline';"/><span style="background-color: #FFFF00; color: #000000;">&lt;%</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx_Default.Aspx_5119_40_2_117_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx_Default.Aspx_5119_40_2_117_Open_Text"><span style="background-color: #F5F5F5; color: #000000;">@ Page Language</span><span style="background-color: #F5F5F5; color: #000000;">=</span><span style="background-color: #F5F5F5; color: #800000;">&quot;</span><span style="background-color: #F5F5F5; color: #800000;">VB</span><span style="background-color: #F5F5F5; color: #800000;">&quot;</span><span style="background-color: #F5F5F5; color: #000000;"> AutoEventWireup</span><span style="background-color: #F5F5F5; color: #000000;">=</span><span style="background-color: #F5F5F5; color: #800000;">&quot;</span><span style="background-color: #F5F5F5; color: #800000;">true</span><span style="background-color: #F5F5F5; color: #800000;">&quot;</span><span style="background-color: #F5F5F5; color: #000000;">  CodeFile</span><span style="background-color: #F5F5F5; color: #000000;">=</span><span style="background-color: #F5F5F5; color: #800000;">&quot;</span><span style="background-color: #F5F5F5; color: #800000;">Default.aspx.vb</span><span style="background-color: #F5F5F5; color: #800000;">&quot;</span><span style="background-color: #F5F5F5; color: #000000;"> Inherits</span><span style="background-color: #F5F5F5; color: #000000;">=</span><span style="background-color: #F5F5F5; color: #800000;">&quot;</span><span style="background-color: #F5F5F5; color: #800000;">Db4objects.Db4odoc.Web._Default</span><span style="background-color: #F5F5F5; color: #800000;">&quot;</span><span style="background-color: #F5F5F5; color: #000000;"> </span></span><span style="background-color: #FFFF00; color: #000000;">%&gt;</span><span style="color: #000000;">
</span><span style="color: #008080;">02</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>
</span><span style="color: #008080;">03</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">&lt;!</span><span style="color: #FF00FF;">DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
</span><span style="color: #008080;">04</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>
</span><span style="color: #008080;">05</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">html </span><span style="color: #FF0000;">xmlns</span><span style="color: #0000FF;">=&quot;http://www.w3.org/1999/xhtml&quot;</span><span style="color: #FF0000;"> </span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
</span><span style="color: #008080;">06</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">head</span><span style="color: #0000FF;">&gt;&lt;</span><span style="color: #800000;">title</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">Guestbook.aspx</span><span style="color: #0000FF;">&lt;/</span><span style="color: #800000;">title</span><span style="color: #0000FF;">&gt;&lt;/</span><span style="color: #800000;">head</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
</span><span style="color: #008080;">07</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">body</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
</span><span style="color: #008080;">08</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>
</span><span style="color: #008080;">09</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">form </span><span style="color: #FF0000;">id</span><span style="color: #0000FF;">=&quot;Form1&quot;</span><span style="color: #FF0000;"> runat</span><span style="color: #0000FF;">=&quot;Server&quot;</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
</span><span style="color: #008080;">10</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">b</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">Username:</span><span style="color: #0000FF;">&lt;/</span><span style="color: #800000;">b</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
</span><span style="color: #008080;">11</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">br</span><span style="color: #0000FF;">&gt;&lt;</span><span style="color: #800000;">input </span><span style="color: #FF0000;">id</span><span style="color: #0000FF;">=&quot;username&quot;</span><span style="color: #FF0000;"> type</span><span style="color: #0000FF;">=&quot;text&quot;</span><span style="color: #FF0000;"> size</span><span style="color: #0000FF;">=&quot;30&quot;</span><span style="color: #FF0000;"> runat</span><span style="color: #0000FF;">=&quot;Server&quot;</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
</span><span style="color: #008080;">12</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>
</span><span style="color: #008080;">13</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">p</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
</span><span style="color: #008080;">14</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>
</span><span style="color: #008080;">15</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">b</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">Message:</span><span style="color: #0000FF;">&lt;/</span><span style="color: #800000;">b</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
</span><span style="color: #008080;">16</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">br</span><span style="color: #0000FF;">&gt;&lt;</span><span style="color: #800000;">textarea </span><span style="color: #FF0000;">id</span><span style="color: #0000FF;">=&quot;message&quot;</span><span style="color: #FF0000;"> cols</span><span style="color: #0000FF;">=60 </span><span style="color: #FF0000;">rows</span><span style="color: #0000FF;">=10 </span><span style="color: #FF0000;">runat</span><span style="color: #0000FF;">=&quot;Server&quot;</span><span style="color: #0000FF;">&gt;&lt;/</span><span style="color: #800000;">textarea</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
</span><span style="color: #008080;">17</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>
</span><span style="color: #008080;">18</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">p</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
</span><span style="color: #008080;">19</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>
</span><span style="color: #008080;">20</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">input </span><span style="color: #FF0000;">id</span><span style="color: #0000FF;">=&quot;BtnGet&quot;</span><span style="color: #FF0000;"> type</span><span style="color: #0000FF;">=&quot;submit&quot;</span><span style="color: #FF0000;"> value</span><span style="color: #0000FF;">=&quot;Get messages&quot;</span><span style="color: #FF0000;">
</span><span style="color: #008080;">21</span><span style="color: #FF0000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>OnServerClick</span><span style="color: #0000FF;">=&quot;ButtonGet_Click&quot;</span><span style="color: #FF0000;"> runat</span><span style="color: #0000FF;">=&quot;Server&quot;</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
</span><span style="color: #008080;">22</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>
</span><span style="color: #008080;">23</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">input </span><span style="color: #FF0000;">id</span><span style="color: #0000FF;">=&quot;BtnSet&quot;</span><span style="color: #FF0000;"> type</span><span style="color: #0000FF;">=&quot;submit&quot;</span><span style="color: #FF0000;"> value</span><span style="color: #0000FF;">=&quot;Add message&quot;</span><span style="color: #FF0000;">
</span><span style="color: #008080;">24</span><span style="color: #FF0000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>OnServerClick</span><span style="color: #0000FF;">=&quot;ButtonSet_Click&quot;</span><span style="color: #FF0000;"> runat</span><span style="color: #0000FF;">=&quot;Server&quot;</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
</span><span style="color: #008080;">25</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>
</span><span style="color: #008080;">26</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">input </span><span style="color: #FF0000;">id</span><span style="color: #0000FF;">=&quot;BtnClear&quot;</span><span style="color: #FF0000;"> type</span><span style="color: #0000FF;">=&quot;submit&quot;</span><span style="color: #FF0000;"> value</span><span style="color: #0000FF;">=&quot;Clear messages&quot;</span><span style="color: #FF0000;">
</span><span style="color: #008080;">27</span><span style="color: #FF0000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>OnServerClick</span><span style="color: #0000FF;">=&quot;ButtonClear_Click&quot;</span><span style="color: #FF0000;"> runat</span><span style="color: #0000FF;">=&quot;Server&quot;</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
</span><span style="color: #008080;">28</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>
</span><span style="color: #008080;">29</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">span </span><span style="color: #FF0000;">id</span><span style="color: #0000FF;">=&quot;entries&quot;</span><span style="color: #FF0000;"> runat</span><span style="color: #0000FF;">=&quot;Server&quot;</span><span style="color: #0000FF;">/&gt;</span><span style="color: #000000;">
</span><span style="color: #008080;">30</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>
</span><span style="color: #008080;">31</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">&lt;/</span><span style="color: #800000;">form</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
</span><span style="color: #008080;">32</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>
</span><span style="color: #008080;">33</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">&lt;/</span><span style="color: #800000;">body</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
</span><span style="color: #008080;">34</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">&lt;/</span><span style="color: #800000;">html</span><span style="color: #0000FF;">&gt;</span></div></pre></div></div>

<div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">default.aspx.vb</span></div><div class="fscCode"><pre ID="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39"><div><!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><span style="color: #008080;">01</span><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/><span style="color: #0000FF;">Imports</span><span style="color: #000000;"> Db4objects.Db4o
</span><span style="color: #008080;">02</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">Imports</span><span style="color: #000000;"> Db4objects.Db4odoc.Web.Data
</span><span style="color: #008080;">03</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>
</span><span style="color: #008080;">04</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>
</span><span style="color: #008080;">05</span><span style="color: #000000;"><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_62_1750_Open_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_62_1750_Open_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_62_1750_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_62_1750_Closed_Text').style.display='inline';"/><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_62_1750_Closed_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_62_1750_Closed_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_62_1750_Open_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_62_1750_Open_Text').style.display='inline';"/></span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_62_1750_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Namespace Db4objects</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_62_1750_Open_Text"><span style="color: #0000FF;">Namespace</span><span style="color: #000000;"> Db4objects.Db4odoc.Web
</span><span style="color: #008080;">06</span><span style="color: #000000;"><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_107_1735_Open_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_107_1735_Open_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_107_1735_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_107_1735_Closed_Text').style.display='inline';"/><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_107_1735_Closed_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_107_1735_Closed_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_107_1735_Open_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_107_1735_Open_Text').style.display='inline';"/>    </span><span style="color: #0000FF;">Partial</span><span style="color: #000000;"> </span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_107_1735_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Class _Default</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_107_1735_Open_Text"><span style="color: #0000FF;">Class</span><span style="color: #000000;"> _Default
</span><span style="color: #008080;">07</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>        </span><span style="color: #0000FF;">Inherits</span><span style="color: #000000;"> System.Web.UI.Page
</span><span style="color: #008080;">08</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">09</span><span style="color: #000000;"><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_175_274_Open_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_175_274_Open_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_175_274_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_175_274_Closed_Text').style.display='inline';"/><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_175_274_Closed_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_175_274_Closed_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_175_274_Open_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_175_274_Open_Text').style.display='inline';"/>        </span><span style="color: #0000FF;">Private</span><span style="color: #000000;"> </span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_175_274_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Sub Page_Load()</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_175_274_Open_Text"><span style="color: #0000FF;">Sub</span><span style="color: #000000;"> Page_Load(</span><span style="color: #0000FF;">ByVal</span><span style="color: #000000;"> sender </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Object</span><span style="color: #000000;">, </span><span style="color: #0000FF;">ByVal</span><span style="color: #000000;"> e </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> System.EventArgs) </span><span style="color: #0000FF;">Handles</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Me</span><span style="color: #000000;">.Load
</span><span style="color: #008080;">10</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">11</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>        </span><span style="color: #0000FF;">End Sub</span></span><span style="color: #000000;">
</span><span style="color: #008080;">12</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">13</span><span style="color: #000000;"><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_298_413_Open_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_298_413_Open_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_298_413_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_298_413_Closed_Text').style.display='inline';"/><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_298_413_Closed_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_298_413_Closed_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_298_413_Open_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_298_413_Open_Text').style.display='inline';"/>        </span><span style="color: #0000FF;">Public</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Shared</span><span style="color: #000000;"> </span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_298_413_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Function RetrieveAll()</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_298_413_Open_Text"><span style="color: #0000FF;">Function</span><span style="color: #000000;"> RetrieveAll() </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> IList
</span><span style="color: #008080;">14</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">Return</span><span style="color: #000000;"> Db4oHttpModule.Client.Get(</span><span style="color: #0000FF;">GetType</span><span style="color: #000000;">(Message))
</span><span style="color: #008080;">15</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>        </span><span style="color: #0000FF;">End Function</span></span><span style="color: #000000;">
</span><span style="color: #008080;">16</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>        </span><span style="color: #008000;">'</span><span style="color: #008000;"> end RetrieveAll</span><span style="color: #008000;">
</span><span style="color: #008080;">17</span><span style="color: #008000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">
</span><span style="color: #008080;">18</span><span style="color: #000000;"><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_463_691_Open_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_463_691_Open_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_463_691_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_463_691_Closed_Text').style.display='inline';"/><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_463_691_Closed_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_463_691_Closed_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_463_691_Open_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_463_691_Open_Text').style.display='inline';"/>        </span><span style="color: #0000FF;">Public</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Shared</span><span style="color: #000000;"> </span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_463_691_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Sub DeleteAll()</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_463_691_Open_Text"><span style="color: #0000FF;">Sub</span><span style="color: #000000;"> DeleteAll()
</span><span style="color: #008080;">19</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">20</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">Dim</span><span style="color: #000000;"> messages </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> IList </span><span style="color: #000000;">=</span><span style="color: #000000;"> Db4oHttpModule.Client.Get(</span><span style="color: #0000FF;">GetType</span><span style="color: #000000;">(Message))
</span><span style="color: #008080;">21</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">For</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Each</span><span style="color: #000000;"> msg </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> Message </span><span style="color: #0000FF;">In</span><span style="color: #000000;"> messages
</span><span style="color: #008080;">22</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                Db4oHttpModule.Client.Delete(msg)
</span><span style="color: #008080;">23</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">Next</span><span style="color: #000000;">
</span><span style="color: #008080;">24</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">25</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>        </span><span style="color: #0000FF;">End Sub</span></span><span style="color: #000000;">
</span><span style="color: #008080;">26</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>        </span><span style="color: #008000;">'</span><span style="color: #008000;"> end DeleteAll</span><span style="color: #008000;">
</span><span style="color: #008080;">27</span><span style="color: #008000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">
</span><span style="color: #008080;">28</span><span style="color: #000000;"><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_739_923_Open_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_739_923_Open_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_739_923_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_739_923_Closed_Text').style.display='inline';"/><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_739_923_Closed_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_739_923_Closed_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_739_923_Open_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_739_923_Open_Text').style.display='inline';"/>        </span><span style="color: #0000FF;">Public</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Shared</span><span style="color: #000000;"> </span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_739_923_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Sub SaveMessage()</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_739_923_Open_Text"><span style="color: #0000FF;">Sub</span><span style="color: #000000;"> SaveMessage(</span><span style="color: #0000FF;">ByVal</span><span style="color: #000000;"> username </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> </span><span style="color: #0000FF;">String</span><span style="color: #000000;">, </span><span style="color: #0000FF;">ByVal</span><span style="color: #000000;"> text </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> </span><span style="color: #0000FF;">String</span><span style="color: #000000;">)
</span><span style="color: #008080;">29</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">30</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">Dim</span><span style="color: #000000;"> msg </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> Message </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">New</span><span style="color: #000000;"> Message(username, text)
</span><span style="color: #008080;">31</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            Db4oHttpModule.Client.Set(msg)
</span><span style="color: #008080;">32</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>        </span><span style="color: #0000FF;">End Sub</span></span><span style="color: #000000;">
</span><span style="color: #008080;">33</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>        </span><span style="color: #008000;">'</span><span style="color: #008000;"> end SaveMessage</span><span style="color: #008000;">
</span><span style="color: #008080;">34</span><span style="color: #008000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">
</span><span style="color: #008080;">35</span><span style="color: #000000;"><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_966_1264_Open_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_966_1264_Open_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_966_1264_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_966_1264_Closed_Text').style.display='inline';"/><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_966_1264_Closed_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_966_1264_Closed_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_966_1264_Open_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_966_1264_Open_Text').style.display='inline';"/>        </span><span style="color: #0000FF;">Public</span><span style="color: #000000;"> </span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_966_1264_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Sub ButtonGet_Click()</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_966_1264_Open_Text"><span style="color: #0000FF;">Sub</span><span style="color: #000000;"> ButtonGet_Click(</span><span style="color: #0000FF;">ByVal</span><span style="color: #000000;"> s </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Object</span><span style="color: #000000;">, </span><span style="color: #0000FF;">ByVal</span><span style="color: #000000;"> e </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> EventArgs)
</span><span style="color: #008080;">36</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            entries.InnerHtml </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #800000;">&quot;&quot;</span><span style="color: #000000;">
</span><span style="color: #008080;">37</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">Dim</span><span style="color: #000000;"> list </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> IList </span><span style="color: #000000;">=</span><span style="color: #000000;"> RetrieveAll()
</span><span style="color: #008080;">38</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">For</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Each</span><span style="color: #000000;"> msg </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> Message </span><span style="color: #0000FF;">In</span><span style="color: #000000;"> list
</span><span style="color: #008080;">39</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                entries.InnerHtml </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #800000;">&quot;</span><span style="color: #800000;">&lt;hr&gt;</span><span style="color: #800000;">&quot;</span><span style="color: #000000;"> </span><span style="color: #000000;">+</span><span style="color: #000000;"> msg.ToString() </span><span style="color: #000000;">+</span><span style="color: #000000;"> entries.InnerHtml
</span><span style="color: #008080;">40</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">Next</span><span style="color: #000000;">
</span><span style="color: #008080;">41</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>        </span><span style="color: #0000FF;">End Sub</span></span><span style="color: #000000;">
</span><span style="color: #008080;">42</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>        </span><span style="color: #008000;">'</span><span style="color: #008000;"> end ButtonGet_Click</span><span style="color: #008000;">
</span><span style="color: #008080;">43</span><span style="color: #008000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">
</span><span style="color: #008080;">44</span><span style="color: #000000;"><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_1311_1505_Open_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_1311_1505_Open_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_1311_1505_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_1311_1505_Closed_Text').style.display='inline';"/><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_1311_1505_Closed_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_1311_1505_Closed_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_1311_1505_Open_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_1311_1505_Open_Text').style.display='inline';"/>        </span><span style="color: #0000FF;">Public</span><span style="color: #000000;"> </span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_1311_1505_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Sub ButtonSet_Click()</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_1311_1505_Open_Text"><span style="color: #0000FF;">Sub</span><span style="color: #000000;"> ButtonSet_Click(</span><span style="color: #0000FF;">ByVal</span><span style="color: #000000;"> s </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Object</span><span style="color: #000000;">, </span><span style="color: #0000FF;">ByVal</span><span style="color: #000000;"> e </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> EventArgs)
</span><span style="color: #008080;">45</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            SaveMessage(username.Value, Message.Value)
</span><span style="color: #008080;">46</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            username.Value </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #800000;">&quot;&quot;</span><span style="color: #000000;">
</span><span style="color: #008080;">47</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            Message.Value </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #800000;">&quot;&quot;</span><span style="color: #000000;">
</span><span style="color: #008080;">48</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>        </span><span style="color: #0000FF;">End Sub</span></span><span style="color: #000000;">
</span><span style="color: #008080;">49</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>        </span><span style="color: #008000;">'</span><span style="color: #008000;"> end ButtonSet_Click</span><span style="color: #008000;">
</span><span style="color: #008080;">50</span><span style="color: #008000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">
</span><span style="color: #008080;">51</span><span style="color: #000000;"><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_1552_1689_Open_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_1552_1689_Open_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_1552_1689_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_1552_1689_Closed_Text').style.display='inline';"/><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_1552_1689_Closed_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_1552_1689_Closed_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_1552_1689_Open_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_1552_1689_Open_Text').style.display='inline';"/>        </span><span style="color: #0000FF;">Public</span><span style="color: #000000;"> </span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_1552_1689_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Sub ButtonClear_Click()</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.Zipsdefault.Aspx.Vb_Default.Aspx.Vb_5163_39_1552_1689_Open_Text"><span style="color: #0000FF;">Sub</span><span style="color: #000000;"> ButtonClear_Click(</span><span style="color: #0000FF;">ByVal</span><span style="color: #000000;"> s </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Object</span><span style="color: #000000;">, </span><span style="color: #0000FF;">ByVal</span><span style="color: #000000;"> e </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> EventArgs)
</span><span style="color: #008080;">52</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            DeleteAll()
</span><span style="color: #008080;">53</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            entries.InnerHtml </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #800000;">&quot;&quot;</span><span style="color: #000000;">
</span><span style="color: #008080;">54</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>        </span><span style="color: #0000FF;">End Sub</span></span><span style="color: #000000;">
</span><span style="color: #008080;">55</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>        </span><span style="color: #008000;">'</span><span style="color: #008000;"> end ButtonClear_Click</span><span style="color: #008000;">
</span><span style="color: #008080;">56</span><span style="color: #008000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/></span><span style="color: #000000;">    </span><span style="color: #0000FF;">End Class</span></span><span style="color: #000000;">
</span><span style="color: #008080;">57</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">58</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/></span><span style="color: #0000FF;">End Namespace</span></span></div></pre></div></div> </p>

</span>
<a name="Persisting Objects in ASP.NET2&nbsp;"></a><h2>Persisting Objects in ASP.NET2&nbsp;</h2>


<p>If you are creating your application in ASP.NET2 you should
take into consideration the fact that the assembly names are generated
automatically on each build by default. Db4o distinguish persisted classes by
name, namespace and assembly, so after the assembly name change, you won't be
able to access classes saved with the previous version of the assembly.</p>

<p>There are several workarounds:</p>

<ul>
<li>You can create a separate class library keeping db4o
logic and persistent classes. This can also help if you need to access fully
trusted db4o library from partially trusted ASP application</li>

<li>You can build your ASP.NET2 application manually using
aspnet_compiler utility from .NET2 SDK.</li>

<p><code>aspnet_compiler.exe
-v /WebSite -f -fixednames c:\WebSite -c -errorstack</code></p>

<li>You can use db4o aliasing API to redirect saved classes
to the new assembly name. The following method should be called before opening
database file to make all the classes within the namespace available after
assembly name change:</li>

<span name="cs_wiki_filter" csw_filters="cs">

<div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">Db4oHttpModule.cs: <span class="fscMemberName">ConfigureAlias</span></span></div><div class="fscCode"><pre ID="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_ConfigureAlias_6396_69"><div><!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><span style="color: #008080;">1</span><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/><span style="color: #0000FF;">public</span><span style="color: #000000;"> </span><span style="color: #0000FF;">void</span><span style="color: #000000;"> ConfigureAlias()
</span><span style="color: #008080;">2</span><span style="color: #000000;"><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_ConfigureAlias_6396_69_37_406_Open_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_ConfigureAlias_6396_69_37_406_Open_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_ConfigureAlias_6396_69_37_406_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_ConfigureAlias_6396_69_37_406_Closed_Text').style.display='inline';"/><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_ConfigureAlias_6396_69_37_406_Closed_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_ConfigureAlias_6396_69_37_406_Closed_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_ConfigureAlias_6396_69_37_406_Open_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_ConfigureAlias_6396_69_37_406_Open_Text').style.display='inline';"/>        </span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_ConfigureAlias_6396_69_37_406_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteCS.ZipsApp_CodeDb4oHttpModule.Cs_App_CodeDb4oHttpModule.Cs_ConfigureAlias_6396_69_37_406_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">3</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            Assembly assembly </span><span style="color: #000000;">=</span><span style="color: #000000;"> Assembly.GetExecutingAssembly();
</span><span style="color: #008080;">4</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            String assemblyName </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #800000;">&quot;</span><span style="color: #800000;">Db4objects.Db4odoc.Web.Data.*, </span><span style="color: #800000;">&quot;</span><span style="color: #000000;"> </span><span style="color: #000000;">+</span><span style="color: #000000;"> assembly.GetName().ToString().Substring(</span><span style="color: #800080;">0</span><span style="color: #000000;">, assembly.GetName().ToString().LastIndexOf(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">Version</span><span style="color: #800000;">&quot;</span><span style="color: #000000;">) </span><span style="color: #000000;">-</span><span style="color: #000000;"> </span><span style="color: #800080;">2</span><span style="color: #000000;">);
</span><span style="color: #008080;">5</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            Db4oFactory.Configure().AddAlias(</span><span style="color: #0000FF;">new</span><span style="color: #000000;"> WildcardAlias(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">Db4objects.Db4odoc.Web.Data.*, WebSite</span><span style="color: #800000;">&quot;</span><span style="color: #000000;">, assemblyName));
</span><span style="color: #008080;">6</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/>        }</span></span></div></pre></div></div>

</span>

<span name="cs_wiki_filter" csw_filters="vb">

<div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">Db4oHttpModule.vb: <span class="fscMemberName">ConfigureAlias</span></span></div><div class="fscCode"><pre ID="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_ConfigureAlias_6529_69"><div><!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><span style="color: #008080;">1</span><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_ConfigureAlias_6529_69_7_377_Open_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_ConfigureAlias_6529_69_7_377_Open_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_ConfigureAlias_6529_69_7_377_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_ConfigureAlias_6529_69_7_377_Closed_Text').style.display='inline';"/><img id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_ConfigureAlias_6529_69_7_377_Closed_Image" src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_ConfigureAlias_6529_69_7_377_Closed_Text').style.display='none'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_ConfigureAlias_6529_69_7_377_Open_Image').style.display='inline'; document.getElementById('ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_ConfigureAlias_6529_69_7_377_Open_Text').style.display='inline';"/><span style="color: #0000FF;">Public</span><span style="color: #000000;"> </span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_ConfigureAlias_6529_69_7_377_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Sub ConfigureAlias()</span><span id="ResourcesReferencePlatform_Specific_IssuesWebSiteVB.ZipsApp_CodeDb4oHttpModule.Vb_App_CodeDb4oHttpModule.Vb_ConfigureAlias_6529_69_7_377_Open_Text"><span style="color: #0000FF;">Sub</span><span style="color: #000000;"> ConfigureAlias()
</span><span style="color: #008080;">2</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">Dim</span><span style="color: #000000;"> asm </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Assembly</span><span style="color: #000000;"> </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Assembly</span><span style="color: #000000;">.GetExecutingAssembly()
</span><span style="color: #008080;">3</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">Dim</span><span style="color: #000000;"> asmName </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #800000;">&quot;</span><span style="color: #800000;">Db4objects.Db4odoc.Web.Data.*, </span><span style="color: #800000;">&quot;</span><span style="color: #000000;"> </span><span style="color: #000000;">+</span><span style="color: #000000;"> asm.GetName().ToString().Substring(</span><span style="color: #800080;">0</span><span style="color: #000000;">, asm.GetName().ToString().LastIndexOf(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">Version</span><span style="color: #800000;">&quot;</span><span style="color: #000000;">) </span><span style="color: #000000;">-</span><span style="color: #000000;"> </span><span style="color: #800080;">2</span><span style="color: #000000;">)
</span><span style="color: #008080;">4</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            Db4oFactory.Configure().AddAlias(</span><span style="color: #0000FF;">New</span><span style="color: #000000;"> WildcardAlias(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">Db4objects.Db4odoc.Web.Data.*, WebSite</span><span style="color: #800000;">&quot;</span><span style="color: #000000;">, asmName))
</span><span style="color: #008080;">5</span><span style="color: #000000;"><img src="../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/>        </span><span style="color: #0000FF;">End Sub</span></span></div></pre></div></div>

</span>

<p>You can use TypeAlias for aliasing
only specific class.</p>
</ul>
<a name="More Information"></a><h2>More Information</h2><p>Additional information about using db4o in ASP.NET environment can be found in db4o <a href="http://developer.db4o.com/ProjectSpaces/view.aspx/All_Tools_and_Add-Ons">Project Spaces</a>. The following community projects featuring db4o ASP.NET membership providers exist:</p><ul><li><a href="http://www.codeplex.com/db4oProviders">db4o ASP.NET Providers</a> <br></li><li><a href="http://developer.db4o.com/ProjectSpaces/view.aspx/Db4oMembership_Provider">db4oMembershipProvider for ASP.NET2</a><br></li></ul></div>
    </div>
    <div id="footer">
					This revision (22) was last Modified 2008-01-01T10:54:11 by Tetyana.
				</div>
  </body>
</html>