actually i am doing php and know how to handle 404 error page not found errors but one of my client needs it in ASP and i am not that much faimliar with ASP. so i need some help if some body could give me code to handle these broken links .
actually it has to be done like this that if user clicks some where on the site and that page does not exist so the programme should take him/her to a page where message will show e.g 'this page doesn't exist'.
I have run into a peculiar problem and need a little shove to solve it.
I have an ASP app that tests to see if the browser allows cookies. Complains if cookies are off, otherwise proceeds to a login page.
Using MS-IE 5 or higher - works fine Using IE5 or Safari on a Macintosh (OS 9 or 10) gives a page not found error when trying to detect the cookie setting.
The ASP code use Request.Redirect. I made some htm pages to allow debugging of the redirect and get the same failure.
I could really use some suggestions for making the Mac machines work.
I have a page where user can enter data, which will be saved in the database. I want to handle the closing of window, by clicking on the 'X' of IE. The user should be Displayed a message asking him if he wants to save the data. If yes then submit the same page to save the data and then close the page, else close the page.
I tried to use the 'OnBeforeUnload' event but not able to submit the page while closing. if this can be done. Please send me links useful in this context.
Supressing the "Save password" prompt: Are there any good approaches to keeping a password from being stored client-side if auto-fill is on? Ideally I'd like to supress the prompt. The only other option I can find is to use a timestamp as part of the form name and pass it (the name as well as the value) in a hidden field to the login script.
Unique concurrent logins: Are there any good ways to prevent userX from being logged in from 3 different locations simultaneously? -I can code for a 'logged in / out" field, but that relies on the user actually login out. And if I use a variation of the "who's online" approach the user may have to wait until the seeion expires befor logging in again (suppose thier net connection dropped for a moment and they need to get back online) - At least I think this assumption is correct.
I have some javascript code which executes once the page is loaded. But When user refreshes the pages this javascript is executing again resulting in additional data. I want to prevent this reexecution of data. I tried doing this javascript in many ways But I filed miserabley.
I tried using Session variables also but they are not working properly.
Microsoft has a service called SUS that allows operating system files to be updated from a dedicated server instead of from Windows Update(Microsoft). SUS is a web app based on .asp. I went ahead and installed SUS on a Windows 2000 server that already had IIS 5.0 on it.
After the installation of SUS I tried to browse to the home page,ie: http://localhost/SusAdmin, and got the error "page not found".
I was able to browse normal html files in the same SUS virtual directory in IIS and see them with no problem. Something is wrong with .asp on IIS or with the setup of SUS.
I want to capture err.description into asp variable when any error occurs in the pages as a whole. Suppose some error occurs at the top of the page say ADO Block.
Can it will travel till page end, or can every error necessarily stop the proceedings and throw error resulting page crash. My ultimate aim is to capture error in asp variable when ever crashable error occurs. How to capture it. Code:
I am gathering the input values to a form using Request.form method from the processing page. After all the data is captured, I am building sql statement out of it.
Using a response.write statement, I am generating the output of the sql statement which I can ran against the table to insert the row.
However, when I am trying to programmatically use the sql statement for the insert, I am having the following error:
I am trying to put a search by product name function on the following page, i think i have everything write but for some reason the page always says product not found as if the query is not getting past Code:
Error Type: ADODB.Recordset (0x800A0CC1) Item cannot be found in the collection corresponding to the requested name or ordinal. /emirate/view.asp, line 175
my database is access,i checked both data base as well as the coding,both field names are correct
my sql is only this sql= "select * from MasterEntry"
i got an error saying file not found 404 when redirect to html page and i ensure that the file is found in the same directory and in the database : response.redirect results("Url") where Url is the column name in the database that contain the page name
have a look at this code and see if they can spot the error. I've been looking for sometime but I'm blind to it - I have a feeling it might be something to do with the ID field? The connection appears fine so this is unlikely to be the cause .
How to find the File not found error in Javascript. My problem is When click the help image button, i want to display the help popup window to the corresponding page, if it is available.
If the help page is not available for the particular page, common 'No help' page should be displayed in popup window. How can i find the file not found error in javascript.
I know what this error is, all fieldnames have been verified and reverified. Not sure why it is happening. Here is the SQL statement
strSQL = "SELECT Problems.TicketNumber, Activity, ActDate FROM Problems LEFT JOIN Resolutions ON Problems.TicketNumber = Resolutions.TicketNumber WHERE Problems.TicketNumber = " & Ticket & " ORDER BY ActDate DESC;"
I'm getting this error working on a RecordSet that is filled by a LEFT JOIN query. Everything works fine, until an attempt to access data from the child table in the RecordSet when it doesn't exist.
Which results in "Item cannot be found in the collection". Is there a check that I can perform to see if a RecordSet item exists before attempting to access it?
I have moved an asp application from one IIS server to another and now having problems with the app on the second server. All I did was to move the folder as it is.
We have an application that uses WinInet and ASP to transfer files from an application server to a web server via an FTP component based on WinInet. An ASP page calls this component to transfer the requested file then opens the file and loads it into ADODB.Stream in order to download it to the user.
Things work fine up to the point where the Open|Save|Cancel dialog appears. If the user clicks Open or Save, a fair percentage of the time, they get a "File not found" error displaying the file name followed by a bracketed number, e.g. file[1].txt.
I have few asp pages, in each i connect to the DB, same con name in all of the pages. one page return error, as above, I had these pages working allright before, but i had to reinstall the IIS 5.1 because it was corrapted after installing SP2, and now rose this error, what could be the reason, do i have to change settings? of what? the wwwroot folder?
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver] The search key was not found in any record.
/warcouncil/issue_update2.asp, line 99
i know for the fact that it is something to do with microsoft access 2000, long text in a field will eventually make the row uneditable and undeletable.
Is there a workaround for this?Or all i need is just to remake the database in a newer microsoft access version?
i recently moved an intranet site from my test development desktop running IIS to a Windows 2000 Server.
Part of my site requires admin users to write descriptions of books, leaflets etc. to text files stored in a specific directory in the Server.
I am using the exact same set up which worked great with IIS, the only change i have made is to the path for the file name, which i have now made relative. Code:
I know it's been asked before & even very recently but I can't figure out why I'm getting that special "ADODB.Recordset error '800a0bcd'
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record." message.
I'm fairly new to this programming however. So, here I've got the heart of the code. I am sure it is the inner while loop throwing the error (I deleted it & did not get the error.)
Can anyone help me see what is causing that error? The page gives all the records that are valid, and then gives the error message. I know that it's looking for nonexistent records and that's why but I don't know why it's looking. I've tried different ways, but keep getting it. Code:
should jump to the "foo" anchor in the page that results from the querystring (comments.asp?id=34)... but sometimes in IE6 it reads id not as "34" but as "34#foo" ... odd behaviour and i cant recreate it reliably, i have two very similar sites and one seccumbed to this bug and the other didnt, what i had to do was double check the input value (i was basically using isnumeric on it) and Code:
For reasons unknown to me I frequently will get an error - to the effect that the function can't be found.
If I hit refresh/F5 it loads the page just fine.
It doesn't happen often .. maybe once every 50 pages. It also doesn't happen on any specific page.
I'd show code, but it's not really related to either the function or any specific page.
Is there any sort of a delay between Asp loading the "includes" and processing the rest of the page? I'm wondering if the function is getting called before the include is pulled in.
SQLState: IM002 Native Error Code: 0 [INTERSOLV][ODBC lib] Data source name not found and no default driver specified
------------------
strconn ="DSN=dsnname ; UID=username ; PWD=password" set conn = Server.Createobject("adodb.connection") conn.Mode= 3 conn.open strconn the error is in the last line. THANX
Item cannot be found in the collection corresponding to the requested name or ordinal.
/etms/WorkFlow/ProductWF/Components.asp, line 193 **********************
The query works fine when i execute it from SQL server but when I integrate it into ASP it doesn't work. Can anyone please shed some light on this. Code:
Do anyone has got any idea about how to deal in ASP page when any link in asp page contains other URL that does not exist or open.
Basically I want to trap this kind of error when user is redirected to other site in a new window and it can't display that page may be due to non existent of that URL or page removed.
I have an exe that is programmed to enter itself in the registry so that whenever the user logs into the machine the exe starts executing. This exe reads data from a text file. whenever the user logs in he gets "file not found" messagebox (the application is in VB) even though the file that it reads from exists.
If we kill the process from the task manager and run it again there is no such error. Its only when the user logs in that he gets this error. The process has to be killed and restarted for it to work.