Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Timer

    Hi,

    what is the best way to show the actual time on an aspx site?

    Robert
    Rob Guest

  2. Similar Questions and Discussions

    1. All ticks timer
      Hi, Here i want to show all millisecond, seconds, minutes and hours in the same text box. Plz tell me the source. thanx -- yojana
    2. First Timer
      hi i want to create my first web service need some tutorials thanks huzaifa
    3. System.Timers.Timer vs. System.Threading.Timer
      Hi Just a quick question... When would you use System.Timers.Timer, and when System.Threading.Timer? What are the principal differences...
    4. Daily timer
      Does anyone know how to set an audible daily timer/alarm for everyday use?
    5. timer question
      I have a loop which goes thorough a recordset until a particular value in the recordset changes. In situations where the value doesn't change, I...
  3. #2

    Default Re: Timer

    Hi Rob,
    If you are refering to the current time of the server that hosts the
    page then all you need is a lable & call it "MyTimeLabel" and set to
    runat=server then within form_Load put the following

    MyTimeLabel.text=Format(now, "hh:mm:ss tt")

    that will give you the time when the page was loaded from the server.

    If you want the time of the computer that recieves the page then you will
    need to forget all the above

    And use one of the 2 links below

    [url]http://javascript.internet.com/clocks/[/url]

    [url]http://javascript.internet.com/clocks/basic-clock.html[/url]

    Chris Wilmot

    "Rob" <robert_dx@gmx.com> wrote in message
    news:04d301c34094$4ff85c80$a001280a@phx.gbl...
    > Hi,
    >
    > what is the best way to show the actual time on an aspx site?
    >
    > Robert

    Chris Wilmot Guest

  4. #3

    Default Timer

    I've got a vehicle maintenance database and would like to
    know how I can set the mileage to when it increases over
    3000 miles in the mileage field a notification is sent to
    the screen or automatically prints a notification page
    saying that an oil change is required for vehicle #111
    (this is the one I'd prefer).

    The way my form is set up is that at the end of every
    month I'd enter a new record on each vehicle and the
    beginning mileage and ending mileage is entered into
    separate fields on each record as well as other info. I'd
    imagine that I would use one of these fields to set the
    timer? What is my best approach to accomplish this? I
    haven't dealt with the timer property at all. Any help is
    appreciated.
    Todd Guest

  5. #4

    Default Re: Timer

    The approach that I used when 'testing' a database of this nature was to
    use code to compare the mileage when the last oil change occured to the
    current mileage, if the difference was more then 3,000 then it would
    give a message stating this.

    Are you keeping track of when oil changes occur for vehicle #111 and the
    mileage at that time?



    Todd wrote:
    > I've got a vehicle maintenance database and would like to
    > know how I can set the mileage to when it increases over
    > 3000 miles in the mileage field a notification is sent to
    > the screen or automatically prints a notification page
    > saying that an oil change is required for vehicle #111
    > (this is the one I'd prefer).
    >
    > The way my form is set up is that at the end of every
    > month I'd enter a new record on each vehicle and the
    > beginning mileage and ending mileage is entered into
    > separate fields on each record as well as other info. I'd
    > imagine that I would use one of these fields to set the
    > timer? What is my best approach to accomplish this? I
    > haven't dealt with the timer property at all. Any help is
    > appreciated.
    Dave - Freedonia Guest

  6. #5

    Default Re: Timer

    : I've got a vehicle maintenance database and would like to
    : know how I can set the mileage to when it increases over
    : 3000 miles in the mileage field a notification is sent to
    : the screen or automatically prints a notification page
    : saying that an oil change is required for vehicle #111
    : (this is the one I'd prefer).
    :
    : The way my form is set up is that at the end of every
    : month I'd enter a new record on each vehicle and the
    : beginning mileage and ending mileage is entered into
    : separate fields on each record as well as other info. I'd
    : imagine that I would use one of these fields to set the
    : timer? What is my best approach to accomplish this? I
    : haven't dealt with the timer property at all. Any help is
    : appreciated.

    I wouldn't use a timer. I would use an unbound text box and
    vba. Let's say you have a field for the last oil change
    (Oc_Last) and a field for current miles (Miles_Current).
    I'll say the unbound text box is (Text3). I would make it a
    larger text box with larger text to stand out a little. I
    tried this out with the folowing code

    Private Sub Form_Current()

    If (Oc_Last + 3000) < (Miles_Current) Then
    Text3 = ("Oil Change Due")
    Text3.ForeColor = RGB(255, 0, 0)
    Else: Text3 = ("")
    End If

    End Sub

    You could probably add on to this to set the text box to say
    something like "oil change due in {xxx} miles" if you so
    desired.

    Seeings forms are generally used for data entry, you may
    want to put that vba in the after update section of the
    miles current: Private Sub Miles_Current_AfterUpdate()

    Good luck. Doesnt't seem like it will that hard to achieve

    mike


    Mike Mueller Guest

  7. #6

    Default Re: Timer

    I do have a field where you enter the mileage when the oil
    change occurred.
    >-----Original Message-----
    >The approach that I used when 'testing' a database of
    this nature was to
    >use code to compare the mileage when the last oil change
    occured to the
    >current mileage, if the difference was more then 3,000
    then it would
    >give a message stating this.
    >
    >Are you keeping track of when oil changes occur for
    vehicle #111 and the
    >mileage at that time?
    >
    >
    >
    >Todd wrote:
    >
    >> I've got a vehicle maintenance database and would like
    to
    >> know how I can set the mileage to when it increases over
    >> 3000 miles in the mileage field a notification is sent
    to
    >> the screen or automatically prints a notification page
    >> saying that an oil change is required for vehicle #111
    >> (this is the one I'd prefer).
    >>
    >> The way my form is set up is that at the end of every
    >> month I'd enter a new record on each vehicle and the
    >> beginning mileage and ending mileage is entered into
    >> separate fields on each record as well as other info.
    I'd
    >> imagine that I would use one of these fields to set the
    >> timer? What is my best approach to accomplish this? I
    >> haven't dealt with the timer property at all. Any help
    is
    >> appreciated.
    >
    >.
    >
    Todd Guest

  8. #7

    Default Timer

    Hi,

    How to write ticks timer, i.e, when any car is start to run the timer shows. Plz attach any sample file.
    Plz send urgently!!.

    Thanx

    Yojana



    zeenu webforumsuser@macromedia.com Guest

  9. #8

    Default Re: Timer

    Hi,

    Here i want to show all millisecond, seconds, minutes and hours in the same text box.
    Plz tell me the source.

    thanx



    zeenu webforumsuser@macromedia.com Guest

  10. #9

    Default Re: Timer

    thanx



    MATHEWS..JOHN webforumsuser@macromedia.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139