Ver Mensaje Individual
  #15 (permalink)  
Antiguo 27/04/2011, 07:56
Wuakap
 
Fecha de Ingreso: mayo-2008
Mensajes: 40
Antigüedad: 16 años
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