Ver Mensaje Individual
  #4 (permalink)  
Antiguo 05/06/2010, 16:18
Avatar de jaullo
jaullo
 
Fecha de Ingreso: abril-2009
Mensajes: 994
Antigüedad: 15 años
Puntos: 30
Respuesta: Copiar Valor LoginName a Textbox o Label en VisualStudio 2010?

Cita:
Iniciado por bimboclaim Ver Mensaje

Dim strUser As String = System.Web.HttpContext.Current.User.Identity.Name

Protected Sub TextBox1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.Load
TextBox1.Text = strUser
End Sub
Podrias ahorrarte la variable simplemente asignandolo
Código ASP:
Ver original
  1. TextBox1.Text=System.Web.HttpContext.Current.User.Identity.Name