I am using Windows authentication and I need to get the ID for the user. I am also using profile with .NET 2.0. I noticed that a record is created for the Windows user in the aspnet_Users table when a profile value is set. Is it possible to use the membership object to get the userid with Windows authentication?
Something like this
Membership.GetUser.ProviderUserKey
I guess I am asking if this web.config line can be configured to work with Windows authentication
<membership>
<
providers><clear/>
<
add
name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
passwordStrengthRegularExpression=""/></providers>
</
membership>