title: A page can have only one server side form tag
body: <p>I have a master page <code>Header.master</code> which contains a logout button, due to this reason I have to include a form with run at server in my master form.</p>
  
  <p>Again I am using a form in my page because I want to use controls and asp.net compiler says that you cant use controls with form tag with run at server.</p>
  
  <p><strong>Header.master</strong></p>
  
  <pre><code>&lt;form runat="server"&gt;&lt;asp:ImageButton ID="btn_logout" runat="server" OnClick="btn_logout_Click" Height="22px" ImageUrl="~/img/logout.png" Width="43px" /&gt;&lt;/form&gt;
  </code></pre>
  
  <p><strong>My Page</strong></p>
  
  <pre><code>&lt;%@ Page Title="" Language="C#" MasterPageFile="~/Header.Master" AutoEventWireup="true" CodeFile="student_registration.aspx.cs" Inherits="SCMS.student_registration" %&gt;
  &lt;asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"&gt;
      &lt;form id="frm_sr" runat="server"&gt;
      &lt;asp:ScriptManager ID="ScriptManager1" runat="server"&gt;
      &lt;/asp:ScriptManager&gt;
      &lt;asp:UpdatePanel ID="UpdatePanel1" runat="server"&gt;
  &lt;/asp:UpdatePanel&gt;
  &lt;/form&gt;
  &lt;/asp:Content&gt;
  </code></pre>