title: How to insert html code section into a particular place using codebehind on page load
body: <p>I have an aspx page where I need to check and display an error message on the page on <code>page_load</code>. The error message is below:</p>
  
  <pre><code>&lt;div class="errorMessage"&gt;The user ID or password you entered does not match our records. Please try again. &lt;br /&gt; 
          You may also securely recover your &lt;a href="#"&gt;User ID&lt;/a&gt; or reset your &lt;a href="#"&gt;Password&lt;/a&gt; online. 
      &lt;/div&gt;
  </code></pre>
  
  <p>this code block should be added to the page after chechking some conditions...and that part and some other functions are implemented in code behide function <code>page_load()</code></p>
  
  <p>how do i do this using only the behind the code in <code>page_load()</code> function without writing it inline in the aspx file? </p>