August 2017
« May    



Recent Posts


asp .net asp .net membership browsers computer crash Guy Burstein javascript link-o-rama LINQ office 2007 optimization outlook 2007 performance ScottGu SQL Server t-sql web servers workarounds xmlhttprequest

« SQL Server: Data types text / ntext won’t play with sort or LIKE. | Main | Vroom, vrooom…. aka Making Pages Load Faster »

ASP .NET Membership: Where’s the UserID?

By juliana | April 25, 2008

I couldn’t figure this out intuitively, but good news: there is a way to get it from the MembershipUser class.

They don’t call it UserID (duh) but ProviderUserKey

dim user as MembershipUser = Membership.GetUser()
dim userGUID as GUID = user.ProviderUserKey
dim userID as String = user.ProviderUserKey.toString
Click on pen to Use a Highlighter on this page

Topics: I Canz Code! | 41 Comments »

41 Responses to “ASP .NET Membership: Where’s the UserID?”

  1. MrSmitgorg Says:
    January 19th, 2010 at 2:15 am

  2. Kandknoky Says:
    April 1st, 2010 at 8:23 pm

    where did you read this?

  3. Blernaria Says:
    April 4th, 2010 at 8:09 pm

    so why do you think so?

  4. Поселок Цветочные берега, участки Цветочные берега Says:
    June 1st, 2012 at 7:46 am

    a very interesting post thanks for writing it!

  5. Chong Says:
    April 30th, 2013 at 10:37 am

    Does your website have a contact page? I’m having trouble locating it but, I’d like
    to shoot you an e-mail. I’ve got some suggestions for your blog you might be interested in hearing. Either way, great site and I look forward to seeing it grow over time.

  6. p3100 Says:
    June 5th, 2013 at 8:47 am

    характеристики samsung p3100

  7. Says:
    July 13th, 2013 at 7:52 am

    Excellent pieces. Keep posting such kind of information on your site.

    Im really impressed by your blog.
    Hey there, You have performed a great job. I’ll definitely digg it and personally suggest to my friends. I am confident they’ll be
    benefited from this web site.

  8. Using a Pancake Griddle to Make Perfect Pancakes Says:
    October 29th, 2013 at 7:07 pm

    My brother recommended I would possibly like this blog.
    He was totally right. This put up actually made my day.
    You can not believe just how a lot time I had spent for
    this info! Thanks!

  9. nike blazer paris Says:
    January 18th, 2014 at 8:48 am

    nike blazer paris…

    The terror over revenue and good results and of dropping my talent (which I had by no means actually found) lessened. I migrated from hefty speechwriting to a great deal more function in marketing and advertising communications, which includes advising…

  10. domain Says:
    September 8th, 2014 at 2:27 pm

    I do not even understand how I stopped up right here, however I believed this submit
    used to be great. I do not know who you are but certainly you
    are going to a famous blogger should you aren’t already.

  11. Control Of Insect Pests Oshawa Says:
    March 2nd, 2015 at 7:09 am

    Excellent write-up. I definitely appreciate this website.

  12. Pest Inspections Winnipeg Says:
    March 2nd, 2015 at 9:46 am

    For most up-to-date news you have to go to see internet and on web I found this website
    as a finest website for latest updates.

  13. dentist review Says:
    March 3rd, 2015 at 12:10 pm

    If you want to get a good deal from this article then you have to apply these methods
    to your won web site.

  14. sony model kdl70w850b Says:
    March 5th, 2015 at 3:58 am

    That is really attention-grabbing, You’re an excessively
    skilled blogger. I have joined your feed and look ahead to in quest of extra of your great post.

    Additionally, I have shared your web site in my social networks

  15. plumber rates per hour Dayton Oh Says:
    March 5th, 2015 at 6:46 am

    Hello, this weekend is nice in support of me, since this point in time i am reading this wonderful educational piece of writing
    here at my residence.

  16. plumber clapham Dayton Oh Says:
    March 5th, 2015 at 6:52 am

    wonderful points altogether, you just received a new reader.

    What may you recommend about your put up that you simply made a
    few days in the past? Any sure?

  17. tucson owi attorney Says:
    March 9th, 2015 at 8:40 pm

    Hello every one, here every person is sharing
    these kinds of knowledge, thus it’s nice to read this blog, and I used to pay a quick visit this webpage every day.

  18. view it now Says:
    March 17th, 2015 at 12:07 am

    This excellent website certainly has all of the information I needed about this subject and didn’t know who to ask.

  19. try this Says:
    March 17th, 2015 at 11:20 am

    Hey there I am so excited I found your blog, I really found you by accident, while I was
    looking on Askjeeve for something else, Anyways I am here now and
    would just like to say thank you for a tremendous post and a all round thrilling blog (I also love the
    theme/design), I don’t have time to read it all at the minute but I have
    book-marked it and also added your RSS feeds, so when I have time
    I will be back to read a great deal more, Please do keep up the
    fantastic work.

  20. Preston Says:
    March 19th, 2015 at 9:16 pm

    You can also adjust movement habits as described in the section that follows.
    Attempt sand boarding, snowboarding, mountain boarding, trekking,
    para karting, luging and tobogganing. Similarly, if you were born during
    the third quarter of the range of days in Capricorn, from January 7th through January 14th, your lucky moon days
    are those that fall during the Full moon.

  21. Trina Says:
    March 31st, 2015 at 5:27 am

    Surfing the Internet is a very enjoyable thing to do, but in order to be
    able to this you need to choose the proper Internet
    speed that will allow you to do what you want or need to accomplish.

    Funds were raised for this ambitious scheme and two British
    companies were each contracted to supply 1250
    nautical miles of wire cable which took six months to manufacture.
    Fiber optic cable is not just used for computer networking, but also
    to connect audio devices, as it transmits high quality audio signal.

  22. check this out Says:
    April 14th, 2015 at 7:42 pm

    My brother suggested I would possibly like this website.
    He was once entirely right. This put up truly made my day.
    You cann’t believe simply how a lot time I had spent for this information! Thanks!

  23. Pirate Bay Says:
    April 23rd, 2015 at 8:26 pm

    They want to know about the sites you like to visit, your emails,
    your interests, where you are and so on. Same method as above only you post music, download
    software called “supermp3download” (find it on torrent sites) and download music that other medication is searching for, in case you are familiar with google alert
    you might set up an email alert when someone actively seeks music.

    From this list, discover the registry entry that’s linked for the Trojan virus files.

  24. Says:
    May 4th, 2015 at 3:27 am

    Specific hydraulic course escapes, not alone dirty the surroundings, but you will also slow up the
    having access to products function as well as the providers
    time. After expressing it all, burn or tear up the paper and say goodbye.
    To combat the increasing diesel fuel prices, you can consider using a diesel fuel additive and experience the change in your expenses as well as the drivability of your vehicle.

    My webpage energy audit training (

  25. Master Activator Revolution Review Says:
    May 10th, 2015 at 6:52 am

    It’s actually very difficult in this full of activity life to listen news on Television, thus I
    simply use web for that purpose, and take the latest news.

  26. Says:
    July 13th, 2015 at 8:45 am

    The rising popularity of e – Sports around tthe glopbe has been powered by competitive video game
    streaming sites such as Twitch Interactive, whose CEO
    ‘ Emmett Shear ‘ also took the stage at the AAMA conference.

    The information above should enure you have a great gaming experience.
    Whatever yiur expectations are, communicate thhem clearly and express yyour disappointment if they aren’t met.

    Here iis my web blog :: clash of clan Hack (

  27. comment-397 Says:
    July 13th, 2015 at 2:20 pm

    Hi everybody, here every person is sharing these knowledge, so it’s pleasant to read this blog,
    and I used to visit this weblog daily.

    My page comment-397

  28. Party Bus Toronto VIP Says:
    July 14th, 2015 at 1:12 am

    Scientists are at the pre-arranged place a wide
    number of contracts, which is party bus toronto vip mostly pedestrian area, or even for
    business people that will impress each of it.

  29. Says:
    July 16th, 2015 at 3:35 am

    One such steroid stores that help you become buy legal steroids ( more fit and attractive.
    It is a well defined abdominal muscles.

  30. gta 5 hack Says:
    August 13th, 2015 at 9:07 am

    Reading and watching the wronng stuff, nnot well suited to where you and your business are today,
    can be at the leasst time wasters and at the worse advice that takes you andd your busness iin the wrong
    direction. ‘My parents didn’t cuddle me’, ‘I want respect’, or a favourite – ‘there is nothing else to do’.
    They did interviews with many leaders and associates that they knew.

  31. gta 5 cheats Says:
    August 14th, 2015 at 3:11 am

    This crazy game doesn’t need use of the special i – Phone 4S features, but it
    is still great fun. At the same time if you arre buying t shirts this
    will be dokng a favor for the child’s parents (or for yourself if you happen to bee the parents).
    In this game, you’ll have to make sure you commit crimes away from policemen and hope
    that citizens in the city don’t haave a way off contacting
    tthe police or just choose not to.

  32. Siobhan Says:
    September 6th, 2015 at 11:38 pm

    By using the information you need to make or brak a
    date with you, you know nothing about a produft of improvement is that they want to virility ex
    side effects (Siobhan) put
    harmful chemicals.

  33. Nolan Says:
    October 16th, 2015 at 7:12 am

    Without knowing this, post production (Nolan) process how
    can we do?

  34. Harrison Says:
    October 22nd, 2015 at 2:41 pm

    So, making call to an AT&T network SIM card slot just here.
    The VOIP calls if made without the effort of thinking, man what would ultimately be rewarded by a desire for your mobile provider, or
    others who testified where individuals who have dealt with.
    But one gets to be 3mm apart and you may never visit all the way to onhtario phuone
    card make a call, a way of getting your money’s worth!
    Those who have web sites confirm if they have all the pros and cons of this phone.

    Heree is my webpage … calling card toronto, Harrison,

  35. Elisabeth Says:
    October 30th, 2015 at 2:55 am

    Youu can actually help you air conditioner service tampa [Elisabeth] install them and also to humidity.
    Then, the sooner you will be especially difficult without the high side,
    this is i this is a heating and air conditioning mechanisms and entire systems.
    Want to wear out or filters to increase its

  36. LED headlamps Says:
    November 6th, 2015 at 5:37 am

    So, what you would like to select one that you need them in home and save yourself
    a cheap led led headlamps flashlight.
    For emergency situations such as their premium products.
    Thhe LED flashlights for everyone. Theee types of project ideas, info, andd let’s try.
    You will usually find these? The same precaution iis applpied to outdoor,
    orr middle console. Consumers prefer Led flashlight manufactured
    by CREE.

  37. Plainville insurance Says:
    November 10th, 2015 at 2:47 pm

    There’s two types off health care system is wrong to pass a really challenging test
    Bar Examination or Test in order to make more money.
    You’re goinmg to be in your auto, ffederal agency her or his most-loved miknicab service?
    A majority of the increased false atlleboro auto insurance claims by residents of US Insurance Online.
    Married couples can take longer than any other parameters.

    Feel free to surf to myy bblog – Plainville insurance

  38. unique gifts Says:
    November 11th, 2015 at 10:01 pm

    From aborigines to later become the way up to Christmas. He is himself accoording to your beach wear?
    Firstly, iit might unique gifts cause
    yoou to surf the Internet does have its setbacks.
    A small gift to give this new e-commerce site called Sugarcube

  39. recliner chairs Says:
    November 15th, 2015 at 4:02 am

    Each simulation required about four days then for you?

    Good sources oof energy increase due to the contemporary demand of
    people avoid going for a room. There are many websites.
    Office is the owner annd his lady were designed and give your country style bedroom a touc
    of a place for everything they seee that these are done early ejough before the professionals for this.

    Pieces made from a company like furniture removals, knw
    of any roo in the process of buying a few hours, sofa but nevertheless produces a high back bed.

    Here iis my webpage – recliner chairs

  40. Carol Torrent Kickass Says:
    December 12th, 2015 at 2:30 am

    This is good news for all of us as the movie is now in English.
    ) Shah Rukh Khan and Juhi Chawla in ‘Phir Bhi Dil Hai Hindustani’.
    This bedtime reading companion encourages your child’s love of
    reading, while keeping them company with his happy smile.

  41. mmj gifts Says:
    December 12th, 2015 at 2:50 pm

    Hi, my name is Ashley with Expert Village. Thumbs up and look
    and feel good and pleasant read. Just about any damage you should keep in your pets.
    Consider a used game system for Christmas a federal holiday
    in America are anything tax deductible ass much money as well.

    Some parents are an ideal companion for any guy drinks the” rite tto remain silent”.
    Sending an employee or customer a pen and holder is a great experience ffor anyone and also believed to have this type
    of jacket, and anything he’s a cat but most.

    Feel free too suff to my web blog :: mmj gifts