| | |
redirect user to another page if error 404
Please support our ASP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Feb 2007
Posts: 66
Reputation:
Solved Threads: 4
Hi,
This has nothing to do with ASP. ASP can only act when the called file is existing.
Some providers offer the option for customized error pages. If you provider does it as well, then you can customize them according to your needs.
If you are running your own server, then navigate to the properties of the related website in IIS, click Custom Errors and change the content of the default error pages.
Good luck,
Ali Baradaran
This has nothing to do with ASP. ASP can only act when the called file is existing.
Some providers offer the option for customized error pages. If you provider does it as well, then you can customize them according to your needs.
If you are running your own server, then navigate to the properties of the related website in IIS, click Custom Errors and change the content of the default error pages.
Good luck,
Ali Baradaran
•
•
Join Date: Feb 2009
Posts: 10
Reputation:
Solved Threads: 3
If you have access to the IIS interface then select the website you want to change, right click then select propertries and in the properties window select custom errors.
You can then select the error (404.asp for example) and either point it to a file on your server a url page that you have created.
You can then select the error (404.asp for example) and either point it to a file on your server a url page that you have created.
•
•
Join Date: Feb 2009
Posts: 15
Reputation:
Solved Threads: 0
•
•
•
•
If you have access to the IIS interface then select the website you want to change, right click then select propertries and in the properties window select custom errors.
You can then select the error (404.asp for example) and either point it to a file on your server a url page that you have created.
so i think if site is not on my computer
i just hired space and domain
i must call the company i hired from
and tell them to do as u told
is that no other way because they are with very slow response?!?!?
•
•
•
•
thank u for reply
so i think if site is not on my computer
i just hired space and domain
i must call the company i hired from
and tell them to do as u told
is that no other way because they are with very slow response?!?!?
Most hosts support uploading your own 404.asp and check there first by default. Also, try this page for more information.
------------------------------------------------------------
If you see no coffee in my immediate vicinity, speak slowly and use small words....
ConnectNL Directory | Blog
If you see no coffee in my immediate vicinity, speak slowly and use small words....
ConnectNL Directory | Blog
•
•
Join Date: Jun 2008
Posts: 36
Reputation:
Solved Threads: 1
There's a code you can use with redirect..
I think it goes like that..
If error <> 0 then
Response.redirect "URL"
Try it
I think it goes like that..
If error <> 0 then
Response.redirect "URL"
Try it
•
•
Join Date: Jun 2008
Posts: 36
Reputation:
Solved Threads: 1
I'm sorry,
I just chack it and its goes like that: If Err <> 0 Then NOT If error <> 0
I just chack it and its goes like that: If Err <> 0 Then NOT If error <> 0
![]() |
Similar Threads
- testing out an asp.net application on university server problem (ASP.NET)
- Simple <Form> data error (C#)
- add watermark in image (ASP.NET)
- error in asp.net in </authorization> (ASP.NET)
- site view disappears (C#)
- Help me in username and password validation through accessing the database (ASP.NET)
- "Forbidden / You don't have permission to access / on this server." error (Linux Servers and Apache)
- 404 and redirect in ASP? (ASP)
- Login used to work (ASP.NET)
Other Threads in the ASP Forum
- Previous Thread: ASP Email Form Sending but Content Not Being Sent
- Next Thread: Inserting/Editing in a gridview
| Thread Tools | Search this Thread |
archive asp asp.net aspandmssqlserver2005 aspandmssqlserver2005connection aspconnection calendar changeable connection current database databaseconnection diagnostics dreamweaver excel fso html iis microsoft msmsql mssql2005 mssqlserver2005 mssqlserver2005andasp mssqlserverandasp opentextfile record searchbox selectoption server single specfic sqlserver sqlserverconnection toolkit web webserver windows7






