Click here to Skip to main content
15,896,359 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack on grid view databind event.

what is the reason for this error? Am getting this error on databind event.

Gridview1.DataBind(); //here am getting this error.

it was working. What could be the reason ?

URGENT PLEASE HELP ASAP.
Posted
Updated 17-Nov-15 0:12am
v2
Comments
[no name] 16-Nov-15 6:14am    
The problem is might be with your GridView1_RowDataBound() event. Are you using RowDataBound Event if yes please check by removing that event.
Am Gayathri 16-Nov-15 7:33am    
Thanks lot ..the problem was with RowDataBound only...Give this as Answer. :)
[no name] 16-Nov-15 6:15am    
Are you using Response.Redirect or Server.Transfer in your code?
Am Gayathri 16-Nov-15 6:19am    
No am not using Response.Redirect...
problem with some data only. For some records binding (gridview.databind()) is working.
No idea about the reason.
[no name] 16-Nov-15 7:36am    
what are you using to bind data Bind() or Eval()? try to change it by other.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900