<< Return to Main Articles Page

Most Popular Articles

Articles by Topic

A Home Builders Opinion Air Conditioning Tips Beachfront Houseplans building lots bungalow Cape Cod House Plans Color Schemes Contemporary Style country house plans craftsman house plans Curb Appeal Custom vs Stock House Plans Do-It-Yourself Dream Homes Engineering House Plans european house plans Exterior Materials Feng Shui Floorplan Layout Frank Lloyd Wright French Country Home Design Garage Plans Garages green design Home Builders Home Designers Homebuilding activity homeplans house plan styles house plans Housing Market Indoor Gyms in-law suites Jake England Landscaping Log Cabins luxury home plans Mediterranean Homeplans modern home plans Modifications Mortgages Mountain House Plans National Association of Home Builders Passive Solar Design Perfect House Plans Plan Images Prairie Houseplans Ranch House Plans Remodeling

Recent Articles

Be Careful With Page.PreviousPage

I found something interesting while testing the website tonight. The new search we implemented was not working on the pages that display house plans. I thought that it was some kind of routing error that could be attributed to the url rewriting. However, closer examination showed that this is the error:

'Page.PreviousPage' threw an exception of type 'System.Threading.ThreadAbortException'

For some reason ASP.Net doesn't like certain nested master pages and will throw this error. My solution was to remove the Page.PreviousPage reference and key off of a parameter value - in this case the value contained in the search box. All that I can figure is that the PreviousPage reference attempts to actually load the page which can result in errors and thus the exception. I haven't had this problem with any of the other pages on the site.

My fix may not be the one I want, but it is fixed.

Comments:

Leave a Comment:

You must be signed in to add a comment

Related Articles