title: How can I display an iframe on button click in c# and also make it invisible when another grid or iframe is displayed?
body: <p>I'm building a database driven web App using asp.net/c# in visual studio 10
  (actually it's my first one so I hope the question is not stupid or something)  What code I should write in the Button_Click Event in the behind code to display the iframe when the button is clicked and also being hidden when another object is loaded (for example a Gridview) ? I couldn't find any matching script in any other answer. This is the code for the iframe:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;asp:Panel&gt;
    
    
  //...some code about gridviews and dropdownlists....//
    
  
  &lt;div id ="Frame" class="iframe"&gt;
    
  &lt;iframe name="iframe" id="iframe1" src="AddProject.aspx" class="iframe&gt;
                                                                  
  &lt;/iframe&gt;
                                                                  
  &lt;/div&gt; 
                                                                  
  &lt;/asp:Panel&gt;
                                                                             
  &lt;asp:Button ID="Button1" runat="server" Text="Add Project" Width="127px"/&gt;</code></pre>
  </div>
  </div>
  </p>