title: Show a div in asp.net on condition
body: <p>Is it Possible to show/notshow a div in asp.net depending if cookies are set or not?
  Note: the div is an html form invoked with javascript in asp.net.</p>
  
  <p>Here the code in asp.net</p>
  
  <pre><code> &lt;asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server"&gt;   
   &lt;script type="text/javascript"&gt;
          $(document).ready(function () { $('#'&lt;%= webform.ClientID %&gt;).load('popup.html'); 
  &lt;/script&gt;&lt;div id="webform" runat="Server"&gt;
  &lt;/div&gt;
  &lt;/asp:Content&gt;
  </code></pre>
  
  <p>And in code behind:</p>
  
  <pre><code>protected void Page_Load(object sender, EventArgs e)
  { webform.Visible= true;}
  </code></pre>
  
  <p>Note that the webform is visible when the code is: (nothing is code behind)
       </p>
  
  <pre><code> &lt;script type="text/javascript"&gt;
  
       $(document).ready(function () { $('#webform').load('popup.html'); })
   &lt;/script&gt;
   &lt;div id="webform" &gt;
   &lt;/div&gt;
   &lt;/asp:Content&gt;
  </code></pre>
  
  <p>The goal is to make this visible or not depending if cookie has been set or not.
  I already tested that the form (in HTML) is setting the cookies(with javascript through webform)</p>