title: How to set a value from database in asp.net at the placeholder
body: <p>I am working on an asp.net project. Now the thing is that I have to place something at the placeholder after fetching it from database. The problem I am facing is that it's not been placed at the place holder. I have attached the codes. Kindly help.</p>
  
  <pre><code>&lt;div class="form" &gt;
            Recovery Email
              &lt;input type="text" class ="form-control" placeholder= &lt;asp:placeholder id = "DisID" runat ="server"/&gt; &lt;br /&gt;
  </code></pre>
  
  <p>C# Code</p>
  
  <pre><code>public void userName()
  {
          String name = "";
  
          SqlCommand thisCommand = cn.CreateCommand();
          thisCommand.CommandText = "Select * from person;";
  
          cn.Open();
  
          SqlDataReader reader = thisCommand.ExecuteReader();
  
          while (reader.Read())
          {
              name = reader.GetString(0);
          }
  
          DisID.Controls.Add(new LiteralControl(name));
  }
  </code></pre>