[SOLVED]: User email from WAT?

User email is stored in WAT DB, how retreive email?

Page 1 of 1

1 Replies - 1496 Views - Last Post: 24 November 2009 - 06:39 AM Rate Topic: -----

#1 jens  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 67
  • View blog
  • Posts: 430
  • Joined: 09-May 08

[SOLVED]: User email from WAT?

Post icon  Posted 20 November 2009 - 04:40 PM

Hi!

I've set up ASP.NET login and got the WAT tool working. The user creates an account using the ASP.NET asp create user wizard where the user is required to enter name, password and email.

By using User.Identity.Name in VB code behind I can retreive the user name but how do I retreive the users email?

Thanks
/Jens

This post has been edited by jens: 24 November 2009 - 06:40 AM


Is This A Good Question/Topic? 0
  • +

Replies To: [SOLVED]: User email from WAT?

#2 jens  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 67
  • View blog
  • Posts: 430
  • Joined: 09-May 08

Re: [SOLVED]: User email from WAT?

Posted 24 November 2009 - 06:39 AM

Hi!

I wanted to get the users email from the database that VWDs WAT (web site administration tool) uses.

Sure I could write my own code to do this but since there are built in functions to retreive the logged in users name and wheter or not the current user is logged in I figured there should be a function to retreive the logged in users email but I could not find it.

Now I have: If Membership.GetUser() IsNot Nothing Then TextBox1.Text = Membership.GetUser().Email that I use in an event handler (e.g. button_click in VB code behind).

:) /Jens
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1