I have an ASP page that runs for at least 2 mins. What the user sees is a progress bar as the page is completing execution of scripts so they know that something is being processed.
The ASP page can be quite CPU intensive and I've found that if the user decides to close the page the CPU usage does not appear to drop back to its normal levels whereas on sucessful completion of the page the CUP usage does drop to normal levels.
Now I know that after a while the CPU usage does drop to its normal levels, however, I'm weary that this could be a long time if there are simultaneous access to the same page.
My question is, is there a way of controlling this via scripts? ie. can I force the webserver(iis) to timeout the script sooner or is there a way i can kill the instruction been sent...
I have a button that goes to a new page - if a person clicks on the X in the right hand corner - I want it to go back to the previous page. How do I set this - I can't set the target to blank.
I created connection to the Microsoft Access DB using DSN from my ASP page.
<% Set vpconn = Server.CreateObject("ADODB.Connection") vpconn.ConnectionString = "File Name=c:inetpubwwwrootDBDNAME.dsn" vpconn.Open ' Close connection immediately after opening for testing vpconn.Close Set vpconn=Nothing %>
The Microsoft Access, for every database opened for shared use, creates an .ldb file to prevent users from writing data to pages that other users have locked. Whenever the last user closes a shared database, the .ldb file should be deleted.
It is working; the .ldb file is deleted immediately after closing connection but not if you open/close this connection from your ASP page.
What I found, the .ldb file is deleted with about 70 seconds delays after closing connection from an ASP page.
What I want to be able to do is create a user control that will display an entire page page within it. Does anyone know how to do this or better yet have any same code?
I have a login page. and more users. Let's call them users A, users B and Users C. Users A can only access page A, users B page B, ... All the pages uses the same DB, but different tables (table A, table B, table C).
Based on users selection from two drop-down lists I want to take them to a page specific to that combination when they click a button. For example, In the first drop-down, the user selects from a list of colors (red, blue, or green).
In the second drop-down, they choose the type (car, van, truck). When they click a button, I want to take them to page specific to what they selected - say a red truck (redtruck.htm). I am not sure how to combine IF or CASE statements with button action.
I am trying to create a page where a registed user can save a search to their member page. So if they see a cottage they like they can save it to their member page.
This is what i have so far This is what passes username and prop_no over to my userupdate page:
Is it possible to redirect a user to another web page using ASP code located in page body?
I have some ASP code that runs after generating some output to the browser.It checks for a condition that can only be calculated using the values produced in the output, so redirecting the user before the <html> tag isn't possible without running the code twice.so RESPONSE.REDIRECT "url" won't work.
I have VBS code that will Enumerate all the Printers in the AD and Add the Printer Connection to the client... I'm just not a web developer so I need some example code or hand-holding on the web integration portion.
"Aaron_TekRecycle.com" <aaron_NAME@DOMAIN_tekrecycle.com> wrote in message news:eNuYPY#TDHA.2260@TK2MSFTNGP12.phx.gbl...[color=blue] > Does anyone know of an ASP page that will query the AD and list all the > printers so the users can "click to add" printer mappings to their[/color] profile?[color=blue]
I have this situation where I have one shared folder on particular server and this folder is shared for just one user to access it. I wrote an asp page wich should open a file from that shared folder. However because the folder is shared for just one user I have somehow to run the asp page as this user.
The same way like in ASP.NET application where I can use impersonation in web.config file. Is this possible?
I am creating my student website. I have completed with student registration parts (student enrolment form, personal details) but now my client requirement is that if any student come to my website , he/she needs to register first so if they log on next time , screen will comes up with their all details. I tried to create login page and if they are not in database , they can register on my website. But I could not able to create in my website. There might be more users so need to have loop in my code. Once user log in their name and password , it will search in database and if database found that record in it , that page will redirect to my website page which will comes up with perticular student information. project details : XHTML (Front End), Java Script (Validation), ASP (Connectivity), MS ACCESS (DATABASE).
After a number of wrong turns and experiments I need advice on login management system to secure our web pages without inconveniencing our visitors or our internal staff.
i need A system whereby the user only has to register ONCE and he will have automatic entry to ANY page without havinto to RE-LOGIN even if he comes in two weeks later or comes directly to that page via an email link. This scenario seems built on the Amazon model of the 'gold box' which automatically remembers you through cookies.
If the user does not have cookies he has to re-login. help me identify a 3rd party product that does this or a route to achieve this in my code.
how do i get data from a user on one page and display the result on the other page actually i have written a prgoram that displays a set of checkboxes and based on the checkboxes selected the related data is displayed .but the problem is the data is displayed on the same page below the list of check boxes. Code:
I have a user based service where each user has their own information, user settings, etc. I want to be able to add tables in my user settings and allow the users to enter in their IM Service (AIM, Yahoo, MSN, etc) and their screen name/user name.
That is the easy part.
What I do not understand or cannot figure out is how to link this information to the icons for each service they enter that will open up the appropriate service with their correct IM name, etc.
Basically I want to provide a way for my members to IM another member when they pull up that users information, or associated information, etc. Basically I need the script to make the Icon execute the correct IM service if the user clicking on it has the service installed as well. The majority of my members use AIM.
Where can I find information on how to install this kind of script and associate it with the users information and an icon?
Is there a way to dynamically add drill down lists and input boxes to the HTML page. For example if the user clicks in a button it adds a new line contains one drilldown list + two input text boxes?
I have set of mp3 files as a list (DownloadFiles.asp). The user can click on any of the mp3 files to download(Download_Porcess.asp).After downloading the file the user has to redirect to the DownloadFiles.asp.
In Download_Process.asp to force the save dialog box. This works fine. This allows the user to download the file. After downloading this mp3 file, this file should not be displayed in the list ie in (DownloadFiles.asp).
How can i do this?
I am not able to redirect from Download_Process.asp to DownloadFiles.asp, b'coz I used response.binarywrite.
Is it possible to create an ASP page that can notify the user that they have an email on our Exchange server? And that will list the number of unread emails they have waiting in their inbox.
im tryin to secure my application. i want the application to send the user back to the login page if they have not logged into the system. do i use the global.asa file or is there a simpler way to do this?
user clicks the link which brings him/her to a secure page (let's call it page "X") which requires login session. If user is not logged in, he/she is redirected to a login page. how can I make user get redirected back to that original page (names "X") which threw him/her to login form?
I tried something like getting url name of page X and redirect to login with that name variable. After login, it gets redirected back to the page that sent variable. But it did not always work.
I have an ASP page which users can call with various parameters to generate data for reports.
However, some users who specifiy very few parameters and so generate a large result page are geting challenged for their network credentials after approx 30 seconds.
When they enter their credentials for the third time the page returns with a 401 "You are not authorized to use this page"
Yet if they specify more parameters (and so get a smaller result page) then the page returns normally.
If checked the query in the database and it runs fine with no errors, so I ssupect I'm hitting some sort of buffer limit within IIS? Code:
We have a web site IIS 5 (on Win2000k) with Oracle 9i backend (Sun unix).
There is 1 user ID to oracle(APT_W3) that is used by all users (50).
We have a global.asa file that has one APP Start connection string using OLE DB: Application("dbConnString")="Provider=MSDAORA.1;Password='SDERSD';User ID=APT_W3;Data Source=CCEWSDD1_new;Locale Identifier=1033;OLE DB services=-1"
The first page that a user sees asks that they select the area they want to see (western, northern, etc) from a dropdown menu. Once they select it and hit save they can go to other pages, session varibles indicating what area they selected are then passed to pages. Currently all areas are in one database.
What we want to do is have areas in separate dbs, a northern one, a western one.etc. Each will have separate user ids (APT_W2N, APT_W3W,etc).
We want the users to have the web page presented to them where they select an area. Based on the area they select, the appropriate conneciton string will be used (the one in the global asa). Code:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Driver Manager] Driver's SQLAllocHandle on SQL_HANDLE_DBC failed it got error when i tried to update.then i checked all my files which has database stuff.i did not see any close statement for recordset & connection.we used DSN for connection.this site was build my someother firm.when i asked to my boss he told me they kept connection open purposely becoz they had uesd connection pooling.they said using connection pooling can utilize less memory resource.should i close each & every open recordset & connection
I realize that sometimes you can use recordsets that were never opened (like when you're adding a record to a db) and I realize that you cannot close a recordset such as this.
But for the ones that ARE open, should they be closed first and then set to nothing?
Also,I'm trying to create code that checks if a recordset is open. If so, I wnat to close it. How would I do that?
In my code I am opening a new window through javascript which opens upon submitting a form. The form collects certain information from user ; and this information is used to create a file.This file is created after the page is submitted and just after the file is created I want to destroy the window and then give a link on the page to download the file.
Is there any way to do this. The problem I faced was upon submitting the page I loose the window object that is returned by window.open method.
for readability purposes,I plan to standardize all my asp pages to always open connection at the beginning of the page and close the connection at the end of the page
If in the middle of the page I issued redirection,does this mean the connection will not be closed?
I have a page on a server (not under my control) that can't have scheduled tasks running on it and I need to hit the page once a day. I am currently doing this through a .bat file on our server which runs iexplore.exe and hits the page. Is there anyway I can get this window to close? either though the .asp page or in the .bat file.
This is becoming more of a problem as there is the likelyhood that within a month or so, I may have more pages requiring this same operation and it isn't very good to have to log on to the server each morning just to close these windows.
I have in the back of my mind and knowing the importance of using close(rsname) to close a recordset once it has been finished with, is whether any recordsets have been left open accidentally.
Is there, therefore, a way of listing all open recordsets, without specifiying the name of the recordset? ie. "For each key in recordset". Do recordsets get closed after a period of non-use?
Is there anyway to close a browser without getting the "Do you want to close this window" pop up? I intend to launch a browser using the windows scheduler. And auto close it itself. I tried using self.close() ...but got that pop up confirmation. Anyway?
My website has been targetted by a web scam. They have sent out an email, which looks as if it's come from me (the email tells them that they must update their information). There is a link in the email which, when clicked, opens up 2 windows: my site in the background and a small window on top with form. This forms asks the customer to submit sensitive information. Is there any script I can use to close down other windows when my site is opened? I can't think of any other quick solution at the moment.