G
Guest
Dear all,
I try to test and implement custom error feature by setting my web config
file as follow:
<customErrors mode="RemoteOnly" Defaultredirect="MyErropage.aspx" />
Trying to redirect error to myErrorpage.aspx.
Then for testing I add a button on my form and when clicking that button I
generate a new exception with the Throw command.
Doing that I was expecting that my erro page will be displayed but instead I
have an untrap exception error.
What I am missing here, or does the fact of generating exception is not
consider as custom error ?
how to test it then
thnaks for your help
regards
serge
I try to test and implement custom error feature by setting my web config
file as follow:
<customErrors mode="RemoteOnly" Defaultredirect="MyErropage.aspx" />
Trying to redirect error to myErrorpage.aspx.
Then for testing I add a button on my form and when clicking that button I
generate a new exception with the Throw command.
Doing that I was expecting that my erro page will be displayed but instead I
have an untrap exception error.
What I am missing here, or does the fact of generating exception is not
consider as custom error ?
how to test it then
thnaks for your help
regards
serge