UserName parameter from ProfileParameter comes back null
<p>I am trying to call a method with the username of the logged in user. I have the following code. </p>

<pre><code>    &lt;asp:ObjectDataSource ID="odsFiles" runat="server" SelectMethod="getFiles" TypeName="MyProject.FileSystemBrowser"&gt;
        &lt;SelectParameters&gt;
            &lt;asp:ProfileParameter Name="username" PropertyName="UserName" Type="String" /&gt;
        &lt;/SelectParameters&gt;
    &lt;/asp:ObjectDataSource&gt;
</code></pre>

<p>When I debug, and look at the <code>getFiles</code> the <code>username</code> parameter is null. </p>

<p>I suspect it has to do with my web.config setup, so here's the profile section from it. </p>

<pre><code>    &lt;profile&gt;
      &lt;providers&gt;
        &lt;clear/&gt;
        &lt;add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/&gt;
      &lt;/providers&gt;
    &lt;/profile&gt;
</code></pre>
