Alphabet Paging in GridView
Wanna implement Alphabet Paging in GridView ?
Click here to visit the site and view the code for the same
I'm using the Enterprise edition of VS 2005. When I debug my project an exception is raised - 'Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack'. I can't find anything about this on-line.
The Code look like:
try
{
some logic
Response.Redirect("LoadedAcmdata.aspx?Temp="+Request.QueryString["Temp"].ToString());
}
catch (Exception ex)
{
throw ex ;
}
I sware there is no bug in this code, when tried to execute this code it creates an exception
Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.
This bug screwed my head. but finally i found solution.
Cause of problem: The Response.End method ends the page execution and shifts the execution to theApplication_EndRequest event in the application's event pipeline. The line of code that followsResponse.End is not executed.This problem occurs in the Response.Redirect and Server.Transfer methods because both methods call Response.End internally.
Solution:
Response.Redirect("nextpage.aspx",false);
If you use this workaround, the code that follows Response.Redirect is executed.
This solution really helps me.