Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional 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 18th, 2006, 08:56 AM
Friend of Wrox
 
Join Date: Feb 2006
Posts: 133
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to gaurav_jain2403
Default Client should not see any error

Hello Friends,
I am developing the application in ASP.NET. I want some way that while accessing the pages, if any error occurs, errors should not be displayed to the user. Instead, user should be redirected to some other page. How can I do this. Please help me .


Gaurav Jain
__________________
Gaurav
 
Old May 22nd, 2006, 06:17 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anubhav.kumar
Default

Hi,

You can achieve this by any of the following

1. Change the settings for custom errors in Web.config
2. Handle Application on Error event in Global.asax
3. Handle Page On Error event on each page

You can specify a page to redirect to in custom errors section of wweb.config while youhave to use response.redirect for other options.

Make sure that you use any one at a time

Anubhav Kumar
 
Old May 26th, 2006, 07:54 AM
Registered User
 
Join Date: May 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to maneeshkomail
Default

Hi gaurav,
I am maneesh
if u dont want to show any error to users.
go to the custom error tag in the web.config
give the defaultredirect value to your error page.
and u can also handle it in global.asax's On_ApplicationError event



Quote:
quote:Originally posted by gaurav_jain2403
 Hello Friends,
I am developing the application in ASP.NET. I want some way that while accessing the pages, if any error occurs, errors should not be displayed to the user. Instead, user should be redirected to some other page. How can I do this. Please help me .


Gaurav Jain
 
Old May 30th, 2006, 02:36 AM
Friend of Wrox
 
Join Date: Feb 2006
Posts: 133
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to gaurav_jain2403
Default

Thank you friends





Similar Threads
Thread Thread Starter Forum Replies Last Post
soapenv:Client - Error: Could not resolve to an op crmpicco XML 7 November 12th, 2008 01:18 PM
error when displaying messagebox on client browser alexdcosta ASP.NET 2.0 Basics 5 June 24th, 2006 12:41 PM
Client Tools Installation error? morpheus SQL Server 2000 1 April 27th, 2004 01:29 PM
Error 1222 - When accessing Client activity ryant SQL Server 2000 1 March 16th, 2004 08:25 AM
Error when using client certificate over SSL subraman00 .NET Web Services 0 October 2nd, 2003 01:50 AM





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