How to direct to PageNotExist.html

A

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?
 
G

Guest

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.
 
G

Guest

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!
***************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top