
27/04/2011, 07:56
|
| | Fecha de Ingreso: mayo-2008
Mensajes: 40
Antigüedad: 16 años, 9 meses Puntos: 3 | |
Respuesta: colocar fecha de inicio y final Prueba con ese codigo
Try
If Session("tipoUsuario").ToString() = "Administrador" Or Session("tipoUsuario").ToString() = "usuario" Then
If DateTime.Now.Day >= 1 and DateTime.Now.Day <= 5 Then
Response.Write("<script>alert('la solicitud se acaba de abrir hasta el 5 de mayo');</script>")
' Response.Redirect("~/Solicitud.aspx")
lbnsolicitud.Enabled = True
Else
Response.Write("la solicitud se ha cerrado")
lbnsolicitud.Enabled = False
End If
End If
Catch ex As Exception
End Try |