![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJwnVJJ6AuYPqFKt5ZnCXijRzW-22o-u_xqJNxQewKJxEWYHBOLxXFMoYEmumo9kFDk1OIrtfp8KMdaluAQMAz9hXaz42VuHDJ2fFc5qnBZsVXcRESYHVxoPrRwrd-FZDaeXp5puWz9eM/s280/Unable+to+Evaluate.png)
try
{
Response.Redirect("Default2.aspx");
}
catch (Exception Ex)
{
Response.Write(Ex.Message.ToString());
}
I got the following Error
Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.
I removed the try ... catch ... block, then I tried only with
Response.Redirect("Default2.aspx");
then it works fine. finally I came to know that Response.Redirect wont works with in try ... catch ... block.
Hope it helps you too.
No comments:
Post a Comment