Ask a Question related to ASP.NET General, Design and Development.
-
-
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 -
First Timer
hi i want to create my first web service need some tutorials thanks huzaifa -
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... -
Daily timer
Does anyone know how to set an audible daily timer/alarm for everyday use? -
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... -
Chris Wilmot #2
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
-
Todd #3
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
-
Dave - Freedonia #4
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
-
Mike Mueller #5
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
-
Todd #6
Re: Timer
I do have a field where you enter the mileage when the oil
change occurred.
this nature was to>-----Original Message-----
>The approach that I used when 'testing' a database ofoccured to the>use code to compare the mileage when the last oil changethen it would>current mileage, if the difference was more then 3,000vehicle #111 and the>give a message stating this.
>
>Are you keeping track of when oil changes occur forto>mileage at that time?
>
>
>
>Todd wrote:
>>> I've got a vehicle maintenance database and would liketo>> know how I can set the mileage to when it increases over
>> 3000 miles in the mileage field a notification is sentI'd>> 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.is>> 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>>> appreciated.
>.
>Todd Guest
-
zeenu webforumsuser@macromedia.com #7
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
-
zeenu webforumsuser@macromedia.com #8
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
-
MATHEWS..JOHN webforumsuser@macromedia.com #9
Re: Timer
thanx
MATHEWS..JOHN webforumsuser@macromedia.com Guest



Reply With Quote

