Ver Mensaje Individual
  #3 (permalink)  
Antiguo 05/06/2010, 12:50
bimboclaim
 
Fecha de Ingreso: junio-2010
Mensajes: 30
Antigüedad: 13 años, 11 meses
Puntos: 0
Respuesta: Copiar Valor LoginName a Textbox o Label en VisualStudio 2010?

Cita:
Iniciado por jaullo Ver Mensaje
Prueba de esta forma
Código ASP:
Ver original
  1. Dim strUser As String = System.Web.HttpContext.Current.User.Identity.Name
Jaullo Muchas gracias llevava horas intentando hacer esto. de esta manera fue como logre colocar la variable al Texbox, por si alguien lo necesita.

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

Muchas Gracias