title: displaying a div tag from code behind
body: <p>I am trying to display a div tag from code behind but what I have tried does not seem to work.</p>
  
  <p>On page Load I do the following(to hide the div) which seems fine.</p>
  
  <pre><code>loginLoader.Attributes.Add("style", "display:none");
  </code></pre>
  
  <p>but I cant seem to display it again(in this case on button click)</p>
  
  <pre><code>protected void butSubmit_Click(object sender, EventArgs e)
      {
          try
          {
  
              loginLoader.Attributes.Add("style", "display:block");
              //etc.
  </code></pre>
  
  <p>Advice perhaps the div is not displaying?</p>
  
  <p>regards</p>