Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 1st, 2004, 02:31 PM
Registered User
 
Join Date: May 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to create an error page??

hello friends,
i am new to this site. i need your help plzz.. i have problem. how do we create an error page..means..for example we go to a site especially a newspaper site, in some particular time if we go, it will automatically redirect to an error page says it is on updating, so please come back later. how do we create that? i badly need to know that because i have project which includes this...help me plzzzz

Thanks
Joseph


 
Old May 1st, 2004, 11:14 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

I know 2 ways:
1. Working with Web Config(recomenved). U just need to set below code in Web.Config file.
Code:
<customErrors defaultRedirect="urErrorPage" mode="On|Off|RemoteOnly">
   <error statusCode="statuscode" redirect="urErrorPage"/>
</customErrors>
2. Working manually on pages. Set below code on first line.
Code:
<%@ Page ErrorPage="errorpage.aspx" %>
HTH.

Always:),
Hovik Melkomian.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Create web page Lizane Java Basics 2 June 20th, 2007 01:20 AM
How to Create Printer Friendly Page? qadeerahmed Classic ASP Basics 1 August 17th, 2005 05:56 PM
Can't create html page from template thiwan Dreamweaver (all versions) 4 June 13th, 2005 11:53 AM
Create an ASP page that will allow deletion jturlington Classic ASP Databases 17 May 18th, 2004 01:59 AM
How to create HTML page from a dynamic ASP page musharaf Classic ASP Professional 2 March 18th, 2004 09:31 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.