asp.net membership provider Guid userID
<p>I need (I think) to get the current logged in userID so that I can update one of my tables that uses this userID as a foreign key. The problem is that the userID in the database does not match with this:</p>

<pre><code>Guid currentUser = (Guid)Membership.GetUser().ProviderUserKey;
currentUser.toString();
</code></pre>

<p>results in dffaca0c-ae0b-8549-8073-1639985740be</p>

<p>whereas when I look in the database, it is 0CCAFADF0BAE498580731639985740BE</p>

<p>Why are they different values? (I only have one user). I am using an oracle database and provider for asp.net, but shouldn't make any difference.</p>
