title: Using getElementById inside user control
body: <p>I have a usercontrol that hides a div when a button is clicked.</p>
  
  <pre><code>&lt;asp:LinkButton ID="lnkbtn" OnClientClick="ShowHide(); return false;" runat="server" /&gt;  
  &lt;div id="popupPage" style="display:none;"&gt;
  &lt;/div&gt;
  
  
   function ShowHideGotoPopUp() {
          var ob = document.getElementById("popupPage");
          if (ob.style.display == "none")
              ob.style.display = "block";
          else ob.style.display = "none"
  
      }
  </code></pre>
  
  <p>There is a problem when I place on page more then 1 usercontrol, all controls has div with same id = popupPage.</p>