It seems you cannot get it from the User object but you can get it this way:
Guid userGuid = (Guid)Membership.GetUser().ProviderUserKey;
More Related Contents:
- What is default hash algorithm that ASP.NET membership uses?
- “The system cannot find the file specified”
- Using one Asp.net Membership database with multiple applications Single Sign On
- How to combine using Membership API with own application related data?
- Is it possible to change the username with the Membership API
- Where does Console.WriteLine go in ASP.NET?
- How to create Custom Data Annotation Validators
- Stored procedure slow when called from web, fast from Management Studio
- Routing for custom ASP.NET MVC 404 Error page
- .Net picking wrong referenced assembly version
- Getting RAW Soap Data from a Web Reference Client running in ASP.net
- ASP.NET authentication login and logout with browser back button
- MemoryCache Empty : Returns null after being set
- How does IsMobileDevice work?
- How do you avoid XSS vulnerabilities in ASP.Net (MVC)?
- ASP.NET – Passing JSON from jQuery to ASHX
- ASP.NET Stress Testing
- PhantomJS as web job in Azure
- file download by calling .ashx page
- asp.net mvc Adding to the AUTHORIZE attribute
- Entity Framework 4 – Update database schema from model. Without wiping the table data
- How to deliver big files in ASP.NET Response?
- What is the difference between ‘dependencies’ and ‘frameworkAssemblies’ in project.json?
- ASP.Net Text with LineBreak from Multi-Line-TextBox to save in a database
- web.config and app.config confusion
- Cache VS Session VS cookies?
- What is an HttpHandler in ASP.NET
- Asp.Net MVC3, returning success JsonResult
- IIS AAR – URL Rewrite for reverse proxy – how to send HTTP_HOST
- Default redirect for Error 404