Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Beginning ASP.NET 4 : in C# and VB
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB 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 October 9th, 2013, 09:21 AM
Friend of Wrox
Join Date: Mar 2011
Posts: 126
Thanks: 39
Thanked 2 Times in 2 Posts
Default Ch 18 - Try it out: Handling Exceptions Site Wide (OtherErrors.aspx)

Hi Imar,

I've been reviewing the error handling and had a question on how to do a test to confirm that the OtherErros.aspx page works with an unhandled error.

I did the following steps:

1) First I created OtherErros.aspx as a standard web form.
2) I removed all the error handling from the SendButton_Click in the ContactFrom web form.
3) In web.config, I changed the pwd to an invalid password under the <mailsettings> <smtp> element.

I was hoping to force an exception when user tries to send an email via the Contact Us and see the website redirected to the othererros.aspx page, but don't see this page appearing.

I'm not sure what I'm doing wrong? Should these steps force the othererrors.aspx page to appear?

Thank you.

Similar Threads
Thread Thread Starter Forum Replies Last Post
ch 18 - Try It out: Handling Exceptions Site Wide Tulsi BOOK: Beginning ASP.NET 4 : in C# and VB 10 September 12th, 2013 01:30 PM
Exception Handling Tip - Ch. 18, p.695 Tulsi BOOK: Beginning ASP.NET 4 : in C# and VB 5 June 6th, 2013 10:34 AM
Handling Exceptions - invalid email address Mind Games BOOK: Beginning ASP.NET 4 : in C# and VB 3 April 30th, 2011 09:56 AM
Ch 18 Deploying Your Web Site jtruffa BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 August 24th, 2009 07:29 AM
C# handling SQL Server exceptions booksnore2 General .NET 3 September 16th, 2006 09:40 AM

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