Murach’s ASP.NET 3.5 with VB 2008
How to use email, custom error pages, and
back-button control

This chapter shows you how to implement 3 functions that will make your web sites even more user-friendly: enabling users to send email, displaying a custom error page that tells the user what happened when an error occurs, and making sure users see the page they expect to see when they click on their browser’s Back button.

Chapter 23 How to use email, custom error pages, and back-button control
How to send email 744
An introduction to email 744
How to configure the SMTP service in IIS 746
How to create an email message 748
How to send an email message 750
How to add an attachment to an email message 752
How to create an HTML message 754
How to use custom error handling 756
An introduction to custom error handling 756
How to get and use the Exception object for an error 758
How to code procedures that redirect to a custom error page 760
The code for a custom error page 762
How to handle HTTP errors with the web.config file 764
How to handle the back-button problem 766
And introduction to the back-button problem 766
How to disable browser page caching 768
How to use timestamps to avoid the back-button problem 770




Murach's ASP.NET 3.5 with VB 2008

Learn more about this book

View the table of contents

Add this book to your cart



Our Ironclad Guarantee

First, try our books for 90 days. Then, if you aren't completely convinced that our books are the best ones you've ever used, you can return them for a full refund...no questions asked.