title: How to show a div after postback on a button click?
body: <p>Here i have a div in which i am showing it during the mouse hover in the master page and after mouse hover three href links will appear in that div .After clicking that href link it is traversing to another page,postback happens and that div is getting hidden in the master page.I need to show that div after that click also.I have used updatepanel and tried it but still it is not working.here is my code</p>
  
  <p>//Div part</p>
  
  <pre><code>&lt;asp:ScriptManager ID="ScriptManager1" runat="server"&gt;
  &lt;/asp:ScriptManager&gt;
  &lt;asp:UpdatePanel ID="Update" runat="server"&gt;
  &lt;ContentTemplate&gt;
  &lt;div runat="server" class="divSUBMenu" id="describe" style="width: 700px; height: 20px;
   font: Arial, Helvetica, sans-serif;" onclick="show(0)"&gt;
  &lt;/div&gt;
  &lt;/ContentTemplate&gt;
  &lt;/asp:UpdatePanel&gt;
  </code></pre>
  
  <p>//Onhover part</p>
  
  <pre><code> &lt;a href="#" onmouseover="showit(0)"&gt;
   &lt;img src="Images/Analyze_over.jpg" name="image1" width="84" height="22" border="0"
   id="image1" alt="" /&gt;&lt;/a&gt;
  </code></pre>
  
  <p>//Javascript for mousehover(working fine)</p>
  
  <pre><code>var submenu = new Array();
      submenu[0] = '&amp;nbsp;&lt;font style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;a style="color: #FFFFFF; text-decoration: none;" href="ATrendAnalysis.aspx"&gt;Trend Analysis&lt;/a&gt; &amp;nbsp;&amp;nbsp; &lt;a style="color: #FFFFFF; text-decoration: none;" href="AEventPerformance.aspx"&gt;Event Performance&lt;/a&gt; &amp;nbsp;&amp;nbsp; &lt;a style="color: #FFFFFF; text-decoration: none;" href="ACannibalization.aspx"&gt;Cannibalization&lt;/a&gt; &amp;nbsp;&amp;nbsp; &lt;a style="color: #FFFFFF; text-decoration: none;" href="AHaloEffect.aspx"&gt;Halo Effect&lt;/a&gt; &amp;nbsp;&amp;nbsp; &lt;a style="color: #FFFFFF; text-decoration: none;" href="AVolumeDecomposition.aspx"&gt;Volume Decomposition&lt;/a&gt;&lt;/font&gt;&lt;/span&gt;';
          var delay_hide = 500;
          var menuobj = document.getElementById ? document.getElementById("describe") : document.all ? document.all.describe : document.layers ? document.dep1.document.dep2 : "";
  
          function showit(which) {
                  clear_delayhide();
              document.getElementById("describe").style.visibility = 'visible';
              thecontent = (which == -1) ? "" : submenu[which];
              if (document.getElementById || document.all) {
                  menuobj.innerHTML = thecontent;
              }
              else if (document.layers) {
                  menuobj.document.write(thecontent);
                  menuobj.document.close();
              }
          }
  </code></pre>
  
  <p>and finally the part below is not working during the onclick but this alert is working</p>
  
  <pre><code>function show(which) {
  alert("test");
  document.getElementById("describe").style.visibility = 'visible';
  }
  </code></pre>
  
  <p>Any suggestion??</p>
  
  <p>EDIT:
  This is the href am clicking</p>
  
  <pre><code>&lt;a style="color: #FFFFFF; text-decoration: none;" href="ATrendAnalysis.aspx"&gt;Trend Analysis&lt;/a&gt;
  </code></pre>