I have spent a fair amount of time creating a company Intranet. Now I have decided to create an admin page that will analyse the automatically created log files. This project is going well so far so good. the time in my log file is 1 hour earlier than the event that it records.
Ie 11.30 am is recorded as 10.30 am. This is true of both my setups (programming/test and working) The time on both computers is correct and if I request the time using ASP the correct time is displayed. While this is not the end of the world I could adjust the time when displaying the data I would like to fix the problem at source.
I have one activex control which fetches data from database and writes it in text file. This control i am using in my asp page. The page executes perfectly fine on my machine but when i execute it from different machine it gives me following error:
I have a message that scrolls across the top of the page, it can work, refresh, work, refresh, fail, refresh, work, etc etc I dont have any control of the permissions, web server etc just my code and database file.
I can see any reason why it will work 4 out of 5 times. Any thoughts ? Code:
how does one go about fixing a run time error? it pops up an alert box with "run-time" and then gives a line number that doesn't really go anywhere. it is usually referring to some html tag. how can i figure out what line it is actually referring to?
I am getting the error Time out expired , I have tried every thing increased Server.scripttimeout to 90000 response.buffer=false .. etc even then I m gettin the error.
I am running into a command time out error. I have to retrieve a lot of date thru a complex query. For some reason, I can't change the commandtimeout to more then 30 secs. And yes I have Connectiontime incr4eased to 90 seconds. Code:
I m getting this error : Run Time error '-2147217887 (80040e21)':
Multiple-step OLE DB operation generated errors. Check each OLE DB Status value, if available. No work was done.Can anyone tell me the reason why this error comes?
I am using VB with SQL Server 2000 with File-DSN Connection and that VB code (Standard Exe) has more than one insert/update statements.
The following code has run-time error on "divide by 0" error. I expect "do the work<br>" will not print in the browser, since it happen after the code that cause the error. However, this is the output: any ideas why?? Or this is the nature of ASP scripting language that is being executed in sequential order? Code:
I performed a forum search and there was a similar question but I had some problems in the visualization of the posts.
Anyway the question is:
run-time error Microsoft VBScript (0x800A01AD) ActiveX component cannot create object and the error that raise the error is Set rs = Server.CreateObject("ADODB.Recordset")
I would like to display the difference between the logging time [Session("start"] and the current time [now]. In hours minutes and seconds, I have tried a couple of things but all I see is gobbledy gook.
I have a website that I subscribe to that allows me to track tasks. I have an extra computer with a big monitor that i want to always display the task list. the problem is after so many hours I get logged out.
I need to need to reload that sign in url every few hours Code:
there i was just windering how do i compare a date/time vlaue in sql server agaisnt the computers' date/time. for example, if computer date/time is two months or 2 weeks before the database date/time do something
Currently working on a ASP for a friend, which requires the date and time on it. It pulls in entries from an Access Database with dates and times in the format of:
"Fri Oct 17 18:02:46 2003" However my date and time on the ASP page is displayed as: "Friday, October 17, 2003 18:02:46" using the script: "<%Session.LCID = 1033%> <%=FormatDateTime(Date(), vbLongDate)%> <%Session.LCID = 2057%> <%=time()%>"
Anyone know how to change this script, fully or partly to produce the date and time on the format that's in the access database i.e. "Fri Oct 17 18:02:46 2003" Code:
I am working on a database that collects information about incidents. One of the fields that people enter is the time of the incident. I am trying to convert that string that people enter into a OdbcType.Time and I am at a lost.
When the Form is submitted I use the Date() and Time() functions to put the date and time into the Body part of the e-mail. The time reported is three hours earlier than the time at which the Form is actually submitted.
I understand these functions are evaluated on the server so the server must be in a time zone three hours earlier than where I am . Is there any way I can get the local time at the location where the user is actually located. ?
I am trying to compare the NOW time with a "deadline" time. Please help. Just not sure why this is not working. I need to be able to say IF IT'S BEFORE 9:30 TODAY, IT'S OKAY TO ADD SOMETHING. IF IT'S AFTER 9:30 TODAY, YOU MUST ADD IT TOMORROW.
CODE:
nowtime=now() deadlinetime=formatdatetime(now(),2) + " 8:30:00 AM" response.write "NOW: " & nowtime & "<BR>" response.write "Deadline: " & deadlinetime & "<BR>" if nowtime<deadlinetime then response.write "can send out today" end if if nowtime>deadlinetime then response.write "must send out tomorrow" end if
RESULTS: NOW: 1/18/2007 8:51:43 AM Deadline: 1/18/2007 8:30:00 AM can send out today
As you can see, NOW is GREATER THAN Deadline, so it should must send out tomorrow.
i want to calculate the total time between to dates and time.
Example: Total time elapsed from date 1 time 1 to date 2 time 2.
27/09/2004 11:00 - 28/09/2004 10:30
The user enters a record and then later comes back and closes it. I need to know the time it took from when they entered the record until the time it was closed.
Invalid ProgID. For additional information specific to this message please visit the Microsoft Online Support site located at: http://www.microsoft.com/contentredirect.asp. /CoxAxis/adminEditPage.asp, line 6
My code:
<% dim self, pid, i, c self = Request.ServerVariables("URL") pid = Request.Querystring("pid") set Session("pageContent") = Server.CreateObject("Scripting.Dictionary") Set custObj = Server.CreateObject("NFIFunctions.ValidateField") Line 6 set psi = Session("pageContent") set errDict = Server.CreateObject("Scripting.Dictionary") i = 1
I am writing an XML file with lots of Data and it takes time but before the operation can be finished I get this error
Quote:
The maximum amount of time for a script to execute was exceeded. You can change this limit by specifying a new value for the property Server.ScriptTimeout or by changing the value in the IIS administration tools.
Would anyone know if there is an easy and clean way of presenting maybe a time control field in html in an .asp page that allows a user to specify a certain time of the day? Currently using an <input name="SpecifyTime" type="Text"field but was wondering if there was a better way of doing this as to where users won't mistype in entering non time related characters?
Would it be a stupid idea to use the Log Util component to retrieve the UTC date/time? It appears that the DateTime property could be used for this, but I'm not really sure how it searches through the log file.