title: Page.DataBind() conflict
body: <p>I have master web page and html code which publish string from the AddThis class.</p>
  
  <p><strong>MainMasterPage.master</strong></p>
  
  <pre><code>&lt;div class="add-this"&gt;
      &lt;%# AddThis.Publish %&gt;                                  
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>AddThis.cs Class code</strong></p>
  
  <pre><code>public static class AddThis
  {
      public static string Publish
      {
  
          get
          {
              return
  
                  "&lt;div class='addthis_toolbox addthis_default_style'&gt;" +
                  "&lt;a class='addthis_button_delicious'&gt;&lt;/a&gt;" +
                  "&lt;a class='addthis_button_digg'&gt;&lt;/a&gt;" +
                  "&lt;a class='addthis_button_stumbleupon'&gt;&lt;/a&gt;" +
                  "&lt;a class='addthis_button_facebook'&gt;&lt;/a&gt;" +
                  "&lt;a class='addthis_button_twitter'&gt;&lt;/a&gt;" +
                  "&lt;a class='addthis_button_googlebuzz'&gt;&lt;/a&gt;" +
                  "&lt;a class='addthis_button_email'&gt;&lt;/a&gt;" +
                  "&lt;a class='addthis_button_blogger'&gt;&lt;/a&gt;" +
                  "&lt;a class='addthis_button_compact'&gt;&lt;/a&gt;" +
                  "&lt;span class='addthis_separator'&gt; &lt;/span&gt;" +
                  "&lt;a class='addthis_button_facebook_like'&gt;&lt;/a&gt;" +
                  "&lt;/div&gt;" +
                  "&lt;script type='text/javascript' src='http://s7.addthis.com/js/250/addthis_widget.js#username=tomasr'&gt;&lt;/script&gt;";
  
          }
  
      }
  }
  </code></pre>
  
  <p>To bind &lt;%# AddThis.Publish %> tag and execute class code I add DataBind to master web page code like this</p>
  
  <p><strong>MainMasterPage.master.cs</strong></p>
  
  <pre><code>protected void Page_Load(object sender, EventArgs e)
  {
     Page.DataBind();
  }
  </code></pre>
  
  <p>The problem is that my main master web page(MainMasterPage.master) is nested and used in 3rd party forum application and I get error below when forum web pages are executed. It seems that DataBind code which is in MainMasterPage.master bind controls in forum code before they are initialized. 
  The question would be, how to bind my AddThis tag in all web pages but without binding other objects?</p>
  
  <pre><code>Invalid attempt to call FieldCount when reader is closed.
  
  Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
  
  Exception Details: System.InvalidOperationException: Invalid attempt to call FieldCount when reader is closed.
  
  Source Error: 
  
  
  Line 58: 
  Line 59:         
  Line 60:         Page.DataBind();
  Line 61: 
  Line 62:     }
  </code></pre>