Ask a Question related to ASP.NET General, Design and Development.
-
Onur Bozkurt #1
Re: Catch Exception Error Message
You can put your code between (try-catch-end try) block in codebehind
and catch the exception by
response.write(exception_name.message)
frank wrote:
> Is there any way to output an error directly to the HTML in a ASP.NET page
> when an exception is caught?
>
>Onur Bozkurt Guest
-
Catch VideoError exception?
Is there a way to catch VideoError exceptions thrown by the VideoDisplay class? I've tried wrapping it in try/catch, but it seems to be thrown... -
What exception should I catch ??
I've read somewhere that it's not a good idea (or design) to catch all exception in one (big) catch(Exception e)... but instead catch the... -
How to catch COM exception in .Net
Ok, I do have a COM dll written in C++. Then a web service written in C# is referencing this COM dll. Here everything is fine. Now I have for... -
weird stack trace message from exception thrown in catch block
If I modify my code a bit to set a variable if an exception is caught, then throw the new exception outside of the try/catch block, it seems to... -
ASP catch exception
I use the following code and get the following error message in my ASP page(not .net). Please help try mycode Catch ex As Exception... -
Kevin Spencer #2
Re: Catch Exception Error Message
try
{
// something
}
catch (Exception e)
{
Label1.Text = e.Message;
}
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
[url]http://www.takempis.com[/url]
Big things are made up of
lots of little things.
"frank" <frank@frank.com> wrote in message
news:uymsRZQUDHA.2520@tk2msftngp13.phx.gbl...> Is there any way to output an error directly to the HTML in a ASP.NET page
> when an exception is caught?
>
>
Kevin Spencer Guest



Reply With Quote

