title: How to find Div id inside Static method using C# asp.net
body: <pre><code>&lt;div class="row" id="div1" runat="server"&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>My method is like this</p>
  
  <pre><code> public static bool CheckEmail() {
     int result=1;
     if(1) 
     { 
       div1.Visible=true; // here am not able to get div id 
     } 
     else { 
        div1.Visible=false; // here am not able to get div id}
     }
  </code></pre>