Unable to evaluate expression because the code is optimized
Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack while port the gridview data into msexcel
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
SenthilkumarRank #387 · 6.5K pointsPosted Apr 13, 2012, 3:07 AM EDT
string rredirectUrl=""; try { //Code redirectUrl="PaymentReceived.aspx"; } catch(Exception ex) { redirectUrl="error.aspx" } Response.Redirect(redirectUrl);