Wednesday, September 30, 2009

CustomErrors asp.net

http://www.c-sharpcorner.com/UploadFile/akukreja/CustomErrorHandlingASPNET11142005235614PM/CustomErrorHandlingASPNET.aspx

http://dotnetguts.blogspot.com/2007/10/error-handling-in-net-with-example.html

Otherwise, create a error page with two divs such as divMain and divError. divMain contains common error message with warning image. Upon clicking that image show the divError with error message. For that in global.asax, put error message in Context.Items["Mesg"] and use server.transfer(errorpage.aspx,true) and set customerrors to off

[Note: server.transfer(folder/errorpage.aspx,true) shows Error executing child request for errorpage.aspx ]

No comments: