Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Beginning ASP.NET 4 : in C# and VB
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old October 9th, 2013, 10:24 AM
Friend of Wrox
Points: 595, Level: 8
Points: 595, Level: 8 Points: 595, Level: 8 Points: 595, Level: 8
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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 when application runs into an unexpected(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.
Tulsi
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ch 18 - Try it out: Handling Exceptions Site Wide (OtherErrors.aspx) Tulsi BOOK: Beginning ASP.NET 4 : in C# and VB 0 October 9th, 2013 10:21 AM
ch 18 - Try It out: Handling Exceptions Site Wide Tulsi BOOK: Beginning ASP.NET 4 : in C# and VB 10 September 12th, 2013 02:30 PM
Exception Handling Tip - Ch. 18, p.695 Tulsi BOOK: Beginning ASP.NET 4 : in C# and VB 5 June 6th, 2013 11:34 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 08:29 AM
C# handling SQL Server exceptions booksnore2 General .NET 3 September 16th, 2006 10:40 AM



All times are GMT -4. The time now is 08:34 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.