Quick Timer
I building a page showing the different times in different parts of the world but if the local time is 08:15:25 and I subtract 10 hours, it displays 0-2:15:25. How can I show it as 22:15:25.
View RepliesI building a page showing the different times in different parts of the world but if the local time is 08:15:25 and I subtract 10 hours, it displays 0-2:15:25. How can I show it as 22:15:25.
View Repliesim using cdosys to send an email from an asp page. is there a way i can insert the current page as the body of the email? i know i can send an HTMLBODY and specify a url.... but that wont work because the page is dynamically generated... so i need to be looking at a page, click a button and have the html of that page inserted as the body.
View Replies View Relatedi want to run some code is a certain condition is met and i can't figure this part out
i want if the button is pressed then will run my code else will run my other code
but how do i specify this button. if "button" is pressed?
how can I count specific charaters in a string?
like the amount of backslashes in-
"D:Inetpubsite hisstring"
How do I force the order of a SQL query?
My table has a field called ModelName which could contain 1 of 5 vehicle
models. I want to force the query to order these in a particular order (not
alphabetical, but an order that I have determined ('Range Rover',
'Discovery', Land Rover', 'Jeep', 'Others')
Let's say my current query is:
"SELECT DISTINCT ModelName FROM tblVehicles"
What do I need to tag on the end to order the result as stated?
1)How can i work out if a certain user is still online? All the pages the user will be able to view has a "check this password etc etc" so i could work it out that way, but would prefer to try and use sessions
2)Work out when a visitor last visited the site. I would like it so that this is only updated when the user LEAVE the site or CLOSES the browser - so it cant be updated on every page
3)Work out what users are on what pages. Again will probably mean sessions but how?!
4)Work out what pages (threads) the user has looked at. I know both vbulletin and snitz do something with the users last visit (question 2) and the last post...but how does it work
On the DATE function, if I want to delete everything that is more than 30 days old,
would I check for DATE-30?
Im looking since the begining of the week about saving the enter(vbcrlf) from the html <textareato my MySql database, it save everything but it just loose everything when saving ot the database, do i need a special component to be able to save the enter and tabs etc. Im sure i was able to do it before and it was easy.
View Replies View RelatedI need a pattern to do this:
"?caid=[0-9]+&pgid=oRS("pgId")"
Where [0-9]+ means you need atleast 1 number there, the rest is just a string plus my recordset's variable. I know this syntax would work with the regex I learned at school but I'm not sure how to make it work in ASP.
Does anyone have a snippet to hand where i can create a dynamic dropdown for a credit card page, basically i need to dynamically create a drop-down populated with this year as 2006 and go back 4 years?
View Replies View Relatedif you have a function in an include file, and you copy that function and give it a different name.... and then you change the name in your call.. shouldn't it work just like the old function did?
View Replies View RelatedI m using MSQL and I m trying to create table where the first column is autoincremented, this, however, generates a syntax error. I can t figure out the problem:
Create Table tblAuthor (ID int(11) auto_increment,AuthorName varchar(200), primary key(ID));
Error Message: Line 1: Incorrect syntax near 'auto_increment'.
can anyone tell me where i can get a good tutorial for a quick search.
View Replies View RelatedHow can I add a quick drop down menu to an asp page? I've tried to incorporate javascript and I can't seem to make it work. I want it to replace the current navigation on this page.
http://www.compsports.com/poll.asp?No=1
I want to add a "quick search" functionality in ASP or ASP.NET page. I heard
we can use Microsoft Indexing Service to accomplish the task, but not sure
how to do it. Is this the correct approach? Code:
i am using the following code to generate a xls file using the content type now when the user opnes the file at his pc it takes long time to open..if the no of records in file is large does the use of html tags has slow down the process of opening in excel. Code:
View Replies View RelatedI'm writing with VBscript and Dreamweaver. I need to create a visible timer that counts down based on how much time a customer has prepaid for. I'm using Access. When they are out of the time the session must be terminated. I guess it should also warn them when they are closing in on expiration.
View Replies View RelatedI'm developing a small ASP server that needs to communicate with another server via http requests. All is working well, but I need the data sent automatically every 5 minutes and sometimes when a certain time is reached. Is there a way to have a program in the background that triggers a function after a certain time has elapsed, of a certain time is reached, and then starts again?
I need at least one occurence of such a service, and perhaps two. The time is not critical to the millisecond, only to the minute or so. I cannot register components, and I don't use .net technology, just ASP scripts. I've browsed the net, but could only find commercial solutions or timers that must be polled. But I need something like an interrupt.
How can I execute a function after a certain period of time, example say 1 minute?
View Replies View RelatedI have built a page that displays some info out of a database. The page uses a datagrid that is filled using a dataset. Forward and backward navigation of the datagrid is custom and works.
What I want is for the datagrid to skip to the next "slide/page"
automatically every 10 seconds.
I've tried adding a System.Timers.timer controll onto the page and having the timer_elapsed method run an exact copy of the code used to skip to the next "slide/page" by clicking a button.
I am having a few problems with the Timer component in ASP.NET. I can get it to work in the C# windows application of visual studio but not in the ASP.NET.
The thing is a number of people will be logged into the website (its a game) so each person will need to view the same timer counting down to zero.
This is the code in ASP.NET. The timer only seems to be counting during page load.
How do i get it to count for a number of minutes while the game is in progress????
This is my sample code:
is there in vbscript a timer or something?i want to make that
after user registers on my site he will see
" thank you for registering " - made this
and that he will be redirected after 15-20 secs to another page
is it possible?
How do i make an ASP page redirct to another ASP page after 15 seconds?
View Replies View RelatedI am having a problem calling the Timer function. I get a compile error
when I include a call to this function.
Invalid character
/sirenServer/INCLUDE/test.asp, line 32, column 19
starttime = Timer()
Here is my system setup:
ASP.dll Version: 5.0.2195.6672
VBscript.dll Version: 5.6.0.8515
On Windows 2000 with IIS5.0 and front page server extensions 2002.
IE 6, VS.NET 2003. and Visual Studio 6.
VBScript Engine: 5.6 Return from :
response.write "VBScript Engine: "
response.write ScriptEngineMajorVersion
response.write "." response.write ScriptEngineMinorVersion
And according to the Version Information of VBScript, the Timer function
language element was implemented in Version 5.0.
I have a web site which after 20 seconds of a visitor being on my site no matter which page he/she is on then a pop up window will appear.
The problem is that i want this for the site as a whole and not just an individual page.
If it was just one page then i could use javascript but every time the page is refreshed or a different page is opened then the timer would start again.
I am creating a auction web site. I am using ASP on the front and SQL Server 2000 in the back. I am trying to figure out a way to get an auction to basically countdown until it reaches 0 seconds left, then to trigger a certain web page to tally who won.
Example:
Auction: HARLEY 2004 MOTORCYCLE
Time: 5 days
So in exactly 5 days or 120 hours the auction needs to know that it has ended and trigger a page to decide the winner.
I need a VBScript timer that is displayed in one of six frames on a page. The hr and mins remaining would come from Access. While the page is open the timer would run down. If and when it reaches no time left it would redirect the whole page to order.asp. I had some code that displayed it in the status bar, but I need it to display in the actual frame.
If anyone has any idea how this is done I would really appreciate it. I'm pretty lost on this.After that gets working I'm also gonna have to take thetime that was remaining and subtract it by what was used and save those variables as the new remaining time.
i do have a little problem.....i have 2 difrent functions in my asp pages. function1 and function2.
funktion 2 has to be executet 15sec after function 1 had been executet.how can this be solved in ASP, and is it impossible.
is there any functionality of timer in vbscript?what i want is that i want to excute a certain statement or set of statements depending upon the start and end time provided by the user.
View Replies View RelatedI have an WebForm1 which contained a ListBox1. I have drag a Timer on the form. In the timer1_Elapsed() function , I have add the line ListBox1.Items.Add("haha"). But when the timer elapsed, it called that line of code, but the ListBox1 didn't show "haha".
Would you tell me what I have missed?
Well i use Timer to test ASP scripts how much time is needed for rendering. But how much time, approximately a heavy asp project like CMS or FORUM should do?
View Replies View RelatedI'm creating a countdown timer to a dynamic date, it reads a date from a db and then counts down to that date. I need to know once the date has been reached how i then display a message stating that the users member ship is up.
View Replies View Relatedif there is a code in ASP that any user that comes to my website after so many mins of being on 1 page it redirects them some where else?
View Replies View Related