title: How to set an ImageButton in TextBox
body: <p>I have this multiline textbox. I want to add an ImageButton to the top left of the textbox.</p>
  
  <p>I saw a few methods but none of them seemed to be too much of a help.</p>
  
  <p><strong>What is the best solution to add an ImageButton to that Multiline textbox?</strong></p>
  
  <p>Here's the code:</p>
  
  <p><strong>HTML:</strong></p>
  
  <pre><code>&lt;p&gt;
      &lt;asp:TextBox ID="txtDescription" Width="98%" Height="300px" style="overflow:auto" BorderStyle="Outset" BorderWidth="2px"
              runat="server" Visible="false" TextMode="MultiLine" ReadOnly="true" &gt;&lt;/asp:TextBox&gt;
  &lt;/p&gt;
  </code></pre>
  
  <p><strong>CODE BEHIND:</strong></p>
  
  <pre><code>protected void SetTextBox(int levelID)
  {
      switch (levelID)
      {
          case 1: // = not started yet
              txtDescription.CssClass = "textBoxWhite";                
              break;
          case 2: //= in proccess
              txtDescription.CssClass = "textBoxBlue";
              break;
          case 3: //= completed
              txtDescription.CssClass = "textBoxRed";
              break;
      }
  }
  </code></pre>
  
  <p><strong>CSS:</strong></p>
  
  <pre><code>.textBoxRed 
   { 
  
         background: rgba(255, 181, 181, 0.5);
   }
  
   .textBoxBlue 
   { 
        background: rgba(181, 181, 255, 0.5);
   }
  
   .textBoxWhite
   {
        background: rgba(255, 255, 255, 0.5);
   }
  </code></pre>
  
  <p><strong>EXAMPLE: See the "Image in textBox</strong>
  <a href="http://www.cssportal.com/form-elements/text-box.htm" rel="nofollow noreferrer">Image in textbox</a></p>
  
  <p><img src="https://i.stack.imgur.com/NGEMJ.jpg" alt="This is how it needs to look like:"></p>