
14/11/2008, 07:23
|
| | Fecha de Ingreso: noviembre-2008
Mensajes: 14
Antigüedad: 16 años, 3 meses Puntos: 0 | |
Respuesta: Help con TextBox OK hice como me indicas pero por alguna razon VS me die que el TextBox.text no esta declarado, si lo delcaro esw decir hago lo siguiente.
<script language=vbscript runat="server">
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim TextBox3 As TextBox
TextBox3.Text = DateTime.Now.ToString()
'AQUI PUEDES JUGAR CON LAS OPCIONES Q TE DA LA CLASE DateTime
'PUESTO Q NO SOLO PUEDES FORMATEAR A STRING LA CADENA RESULTANTE
'SINO TMB A ToShortDateString() (Algo asi como 11/11/2008) etc etc...
End Sub
</script>
VS me arroja un menaje que dice " Is Used before it has been assined a value a null reference exception could result at rutime " |