Give Descriptive Error Messages to the User

Give Descriptive Error Messages to the User

Error messages should be passed on to users so that they are always aware of the problems they have encountered and will perform the requested actions. Although you cannot use Reponse.Write to display an error that occurred at the session start, the user can still be notified of the error.

You can do so by redirecting to another page and passing the error in the query string. Suggested usage is shown below:

 Sub Session_OnStartResponse.Redirect "DisplayError.asp?txtError=" & Server.URLEncode("Could not open the database")End Sub

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist