7
Answers

getting the username from a loginview.

Ask a question
Mark Uy

Mark Uy

14y
9.8k
1
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)