title: The name xxx does not exist in the current context
body: <p>I am using the login control of asp.net and the Fileuploader.
  When I leave the file uploader control outside the <code>&lt;LoggedInTemplate&gt;</code> it works but when I try to move the Fileuploader inside the <code>&lt;LoggedInTemplate&gt;</code> I get "The name xxx does not exist in the current context" and it referes to the C#.</p>
  
  <pre><code>&lt;LoggedInTemplate&gt;
      &lt;b&gt;Login ok ! &lt;/b&gt;&lt;br /&gt;
          &lt;asp:FileUpload ID="FileUpload1" runat="server" /&gt;
          &lt;asp:SqlDataSource ID="SqlDataSource1" runat="server" 
          ConnectionString="&lt;%$ ConnectionStrings:ConnectionString %&gt;" 
          InsertCommand="INSERT INTO aspnet_PicturesHome(pUrl) VALUES (@pUrl)"
          SelectCommand="SELECT pID, pUrl FROM aspnet_PicturesHome"&gt;
              &lt;InsertParameters&gt;
                  &lt;asp:ControlParameter Name="pUrl" Type="String" ControlID="FileUpload1" PropertyName="FileName"/&gt;
              &lt;/InsertParameters&gt;
          &lt;/asp:SqlDataSource&gt;
  &lt;asp:Label ID="Label1" runat="server" Text="Label"&gt;Foto upload: &lt;/asp:Label&gt;
  &lt;asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Upload" /&gt;
  &lt;br&gt;&lt;/br&gt;
  &lt;/LoggedInTemplate&gt;
  </code></pre>