Mark Uy

Mark Uy

  • NA
  • 130
  • 0

getting the username from a loginview.

Nov 14 2009 11:32 AM
hi again

i have simple web form that is dependent on the login control of asp.net

here's a snapshot:

http://s279.photobucket.com/albums/kk137/wh3resmycar/?action=view&current=login.jpg


i already have a loginview control working that says "Welcome back [user name]" ( in this case the user name is "new").

anyway, i need to get the value of the username to be inserted on to a table along with the other contact details.

i tried this method >>> "LoginView1.ClientID.ToString();"

but it didnt seem to work as i wasnt able to extract the value of the username.

// what i did was test if i can get the value and display it using a label first "Label1.Text = LoginView1.ClientID.ToString();"

didnt seem to work as the label displayed its default value.


any idea?

thanks in advance.



Answers (7)