try{
}catch(Exception ex){;}
in codebehind and your html code:
response.write(ex.Message)
the last code is in c#, remember that C# is Key sensitive.
-----Original Message-----
Is there any way to output an error directly to the HTML in a ASP.NET pagewhen an exception is caught?
.