is there any method that tests if it's the 1st time that page is loaded? Or if the submit button is clicked or not? my form validation function is working as soon as the page is loaded. but i don't want that. i need that function start working only after my submit button is hit. how can i check the difference?
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:
how do i and what exactly does an onloaded function look like? I want to use an on loaded function that when the page is done loading,i want to use, respose.redirect to reload the page.
I am using an ASP to update some table contents on my HTML page by calling the ASP page using hidden frames.
But the ASP script seem to get called even before the HTML FRAME is loaded ie.(operlayout_preload.html). Is there a way to check in ASP that it should start running only after the html is loaded completely below is the html code that contains the HTML and the ASP(hidden)
ListBox A is bound to Teachers. When an item is selected in ListBox A, related students are read from the Student table and displayed in ListBox B. This is working properly. The problem is when I select an item in ListBox B, it keeps on selecting back the first item. I have AutoPostBack=true for both ListBoxes.
But this happens even when I turn AutoPostBack off for ListBox B. Every time I try to perform an operation on ListBox B, such as remove an item, it always does so to the first item. Wassup with that? Any can tell me what can be done to work around this problem?
I'm working wih Flash and using ASP at the backend to connect to an access DB and retrieve 10 records per execution. Is there a method or way to detect the total-bytes of these 10 records (they can be of any size) AND the bytes used by connecting to the DB in the first place. If I can solve this issue, then i can use actionscript within flash to show the realtime DB connection and data-transfer.
I am somewhat famialiar with ASP.net but I am trying to use ASP. I want to dynamically load drop down lists from an already created MySQL DB. I already have the table build and all the fields, and what not but I can't figure out how to load the values of a drop down list with the records from a column.
i have managed to get my paypal ipn script to login my webhost to sandbox, however i have had to do this via httppost.
now my problem is, the script moves on, when still loggin in how can i get my script to wait a moment, chill and then proceed as normal like it would if i was live.
I downloaded the latest version of the VB scripting engine for Windows 98 as I needed to have support for regular expressions. Everything was fine yesterday but when I switched my pc on this morning and tried to access micros personal web server/web manager via start/programs, the page where I click 'start' does not appear.
I can't get it to run. what has happened and how to rectify it. i am under huge pressure to get something done by the end of today and desperate to sort this out asap.
what happened was that I have installed oracle in my window 2k server and when I try to get a ASP program to access some data on the oracle db this error keeps on bugging me... I have search the web in vain for solution n would be really grateful if any one can help me with this bug
error:
Microsoft Ole DB provider for oDBC drivers (0x80004005) Specified driver could not be loaded due to system error 1114
I am creating a text file. I have a button that will import data to an sql tabel and then redirect to the file page. the File page will generate letter with name and address pulled out of the database and then show a table with the name / address the letter / file was created for.
The thing works fine if i place "top 10 " in my select query. If I let it just run the whole list (could be 1300 or more names) the page times out on me.
Here is my code and when i print out this page i see the url for the page and also the time and 1 of 1 which is the page number can someone tell me how i can avoid these things so they are not printed ....
This page takes awhile to load which is probably due to the queries and the way I have it outputed. Anybody have any advice for speeding this up? Code:
I show information from a database in a table format. I will be showing more and more data and would like to show it one page at a time with a next page back page option. Can I do this on a web page and does anyone know where I could look to find out how
The code to show how long it took the page to generate in seconds ?!?, if you get onto the main page of this site, www.tgplus.net and loom at the left had side, it tells you how long it took the page 2 generate.
There's an access database on an iisserver and asp makes updates to it. The database got moved to a newer server. The users used to be able to open the database and use the asp pages at the same time. Now when the database is open the asp pages won't update.
My server hangs for a really long time after I run the following code...
It is to serve up 3 types of files: a picture, a word document, and an mp3 file from a directory "/uploads" that is not accessible through the URL. The script works perfectly for the picture and doc file, but nothing loads when it is used for the audio files. The files are a few megs large, but after I run it I can't access ANYTHING on the site for quite some time.
What's wrong? Is it something wrong with M@rco's script? Did I impliment it wrong?
I don't mind if it simply takes a long time for it to load the audio file, but it is killing the entire server it seems like. Code:
I have an asp page in which I use the �time() function but that just gives the time at the moment the page is loaded. I need to reload/refresh the page once every second so the seconds increase by one continuously.
I have a clickable graph that resides on page 1. If user clicks a data point on the graph, the page runs again yeilding a 2nd graph that shows a more detailed graph.
Problem is, I have a recordset table on the 2nd graph page and because the user gets to it by clicking the graph, the page doesn't properly post to render the recordset table. I can click "Refresh" on 2nd page and table displays fine.
Is there an ASP refresh command that I could possibly run to mimick a "Refresh" or F5?
I am looking for the best way to capture the time spent on a page and then write that to a txt file sitting on a server when the form is submitted. Right now I capture the time spent using javascript... I know i cannot write to a file using this. I am not looking to learn any in-depth ASP stuff... just looking for a simple solution if at all possible.
My problem is that the left and right panels of my website are exactly the same on every page so I made them into an include file. Yet, everytime a person clicks a link to another page, those images have to reload all over again....
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.
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.