473,386 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to direct to PageNotExist.html

ad
My Web application is developing, and there are some links in the menu refer
to non-exist page.

I wnat to redirect usr the a descript page name PageNotExist.html when the
page does not exist.

How can I catch the error when page not exist, and redirect usr the the
description page?
Nov 19 '05 #1
3 998
HI
You can do these settings in Internet Service Manager. Go to the Properties
for that Particular Website. Click on Custom Errors and Map your file for
File Not Found Errors.

"ad" wrote:
My Web application is developing, and there are some links in the menu refer
to non-exist page.

I wnat to redirect usr the a descript page name PageNotExist.html when the
page does not exist.

How can I catch the error when page not exist, and redirect usr the the
description page?

Nov 19 '05 #2
You can set up "custom error pages" in your web.config file. This can be "any
error" down to "specific errors" (in this case 404). The same can be done
declaratively in IIS for your application by mapping 404 to a particular page.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
"ad" wrote:
My Web application is developing, and there are some links in the menu refer
to non-exist page.

I wnat to redirect usr the a descript page name PageNotExist.html when the
page does not exist.

How can I catch the error when page not exist, and redirect usr the the
description page?

Nov 19 '05 #3
KMA
custom error section of web.config

"ad" <fl****@wfes.tcc.edu.tw> wrote in message
news:Os*************@TK2MSFTNGP15.phx.gbl...
My Web application is developing, and there are some links in the menu refer to non-exist page.

I wnat to redirect usr the a descript page name PageNotExist.html when the
page does not exist.

How can I catch the error when page not exist, and redirect usr the the
description page?

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: David | last post by:
Hi, I have an asp page which basically takes some data from a previous page form and inserts the data to my database and then does a re-direct to: Response.Redirect "JS_Create.asp" On this...
5
by: Patient Guy | last post by:
In my reading of the Strict and Transitional DTD for HTML 4.0, the table row (TR) elements are contained within table section elements: THEAD, TFOOT, and TBODY. The table section elements are...
1
by: acrocker | last post by:
I would like to provide access to users who need to be taken directly to the relevant page without further navigation instructions. Unfortunately the page I want to access is built using a...
5
by: Nadav | last post by:
Hi, I am trying to get a direct pointer to the address of the screen ( something like 0x0b00 in the happy DOS days ), how can I do that? Should this be done in the kernel or it can also be done...
3
by: Tony | last post by:
At http://www.quirksmode.org/js/placejs.html I found a discussion on how & where to place your javascript. Toward the bottom of the page, PPK has a section titled Deprecated: Direct JavaScripts,...
0
by: thompson_38 | last post by:
What is the difference between calling a HTML page stored on the local machine (axWebBrowser.Navigate("home.htm" ref 0, ref 0, ref 0, ref 0)) and being able to access a frame, to creating a...
13
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I direct someone to this FAQ? ----------------------------------------------------------------------- ...
2
by: sono | last post by:
Today I read there is a possibility to write direct Fench characters in HTML. Thus instead of having to write : L'&eacute;l&egrave;ve va &agrave; l'&eacute;cole et ceci est &eacute;crit en...
2
oranoos3000
by: oranoos3000 | last post by:
hi I have a login page in my site for login member I want to any user that arrival correctly directly go to page1.php I use header statement(header("Location: page1.php")) in middle page that...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.