Ver Mensaje Individual
  #12 (permalink)  
Antiguo 27/04/2011, 07:16
stefy61292
 
Fecha de Ingreso: abril-2011
Mensajes: 27
Antigüedad: 13 años
Puntos: 1
Respuesta: colocar fecha de inicio y final

hola mira pues coloque asi el codigo pero no me funciona me sale la solicitud que sera me podrian ayudar este es el codigo:
Try

If Session("tipoUsuario").ToString() = "Administrador" Or Session("tipoUsuario").ToString() = "usuario" Then

If DateTime.Now.Day >= 1 Then
Response.Write("<script>alert('la solicitud se acaba de abrir hasta el 5 de mayo');</script>")
lbnsolicitud.Enabled = True
Response.Redirect("~/Solicitud.aspx")
Else
If DateTime.Now.Day <= 5 Then
Response.Write("la solicitud se ha cerrado")
lbnsolicitud.Enabled = False


End If

End If
End If
Catch ex As Exception

End Try

gracias