title: How to use ascx, or another equivalent?
body: <p>How can i insert login view to every page in my asp.net mvc 2.0 project? 
  I have "stolen" this controllers, and view's from Non empty project of MS visual studio 2010. How can i insert login form on every view? 
  I need to use such thing as in php: include. What is in asp.net mvc? ascx???
  Here is main.master:</p>
  
  <pre><code>    &lt;%@ Master Language="C#" Inherits="System.Web.Mvc.ViewMasterPage" %&gt;
  
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
      &lt;meta http-equiv="Content-Type" content="text/html; charset=windows-1251" /&gt;
      &lt;title&gt;
          &lt;asp:ContentPlaceHolder ID="TitleContent" runat="server" /&gt;
      &lt;/title&gt;
      &lt;asp:ContentPlaceHolder ID="HeadContent" runat="server" /&gt;
      &lt;link href="/Content/Site.css" rel="stylesheet" type="text/css" /&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div class="header"&gt;
          &lt;img src="/Content/image/img_06.jpg" width="320" height="192" /&gt;&lt;/div&gt;
      &lt;div class="naviheader"&gt;
          &lt;div class="navl"&gt;
          &lt;/div&gt;
          &lt;a href="/Home" class="navitext"&gt;На главную&lt;/a&gt; &lt;a href="/Shedule" class="navitext"&gt;
              Расписание&lt;/a&gt; &lt;a href="/Home/About" class="navitext"&gt;О нас&lt;/a&gt; &lt;a href="/Admin"
                  class="navitext"&gt;АдминПанель&lt;/a&gt;
      &lt;/div&gt;
      &lt;div id="middle"&gt;
          &lt;div id="container"&gt;
              &lt;div id="content"&gt;
                  &lt;asp:ContentPlaceHolder ID="MainContent" runat="server"&gt;
                  &lt;/asp:ContentPlaceHolder&gt;
              &lt;/div&gt;
              &lt;!-- #content--&gt;
          &lt;/div&gt;
          &lt;!-- #container--&gt;
          &lt;div class="sidebar" id="sideLeft"&gt;
              &lt;asp:ContentPlaceHolder ID="Login" runat="server"&gt;
                  &lt;% Html.RenderPartial("Login"); %&gt;
              &lt;/asp:ContentPlaceHolder&gt;
          &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>where and what i must insert? 
  here is login view(aspx):</p>
  
  <pre><code>  &lt;%@ Page Language="C#" MasterPageFile="~/Views/Shared/Main.Master" Inherits="System.Web.Mvc.ViewPage&lt;TrainShedule.Models.LogOnModel&gt;" %&gt;
  
  &lt;asp:Content ID="loginTitle" ContentPlaceHolderID="TitleContent" runat="server"&gt;
      Log On
  &lt;/asp:Content&gt;
  
  &lt;asp:Content ID="loginContent" ContentPlaceHolderID="MainContent" runat="server"&gt;
      &lt;h2&gt;Log On&lt;/h2&gt;
      &lt;p&gt;
          Введите свой логин и пароль:
      &lt;/p&gt;
  
      &lt;% using (Html.BeginForm()) { %&gt;
          &lt;%= Html.ValidationSummary(true, "Login was unsuccessful. Please correct the errors and try again.") %&gt;
          &lt;div&gt;
              &lt;fieldset&gt;
                  &lt;legend&gt;Ввод данных:&lt;/legend&gt;
  
                  &lt;div class="editor-label"&gt;
                      &lt;%= Html.LabelFor(m =&gt; m.UserName) %&gt;
                  &lt;/div&gt;
                  &lt;div class="editor-field"&gt;
                      &lt;%= Html.TextBoxFor(m =&gt; m.UserName) %&gt;
                      &lt;%= Html.ValidationMessageFor(m =&gt; m.UserName) %&gt;
                  &lt;/div&gt;
  
                  &lt;div class="editor-label"&gt;
                      &lt;%= Html.LabelFor(m =&gt; m.Password) %&gt;
                  &lt;/div&gt;
                  &lt;div class="editor-field"&gt;
                      &lt;%= Html.PasswordFor(m =&gt; m.Password) %&gt;
                      &lt;%= Html.ValidationMessageFor(m =&gt; m.Password) %&gt;
                  &lt;/div&gt;
  
                  &lt;div class="editor-label"&gt;
                      &lt;%= Html.CheckBoxFor(m =&gt; m.RememberMe) %&gt;
                      &lt;%= Html.LabelFor(m =&gt; m.RememberMe) %&gt;
                  &lt;/div&gt;
  
                  &lt;p&gt;
                      &lt;input type="submit" value="Log On" /&gt;
                  &lt;/p&gt;
              &lt;/fieldset&gt;
          &lt;/div&gt;
      &lt;% } %&gt;
  &lt;/asp:Content&gt;
  </code></pre>