I have a simpleAsp.net page which I make it Ajaxable. everything works fine but I face with a problem whenever a specific method calls.
Actually the Browser tell me that
Sys.WebForms.PageRequestManagerServerErrorException: Unable to cast object of type 'System.Web.UI.LiteralControl' to type 'System.Web.UI.WebControls.WebControl'.
I do not know how to resolve it. Any help appriciates.
Update : here is the code : I’ll remove this section after getting answer
I removd the code because there were no answer
As I put the codes. and I work with this issue I found that when I use TemplateColumn for Edit/Update/Cancel/Delete and Select I face with this problem, so I change TemplateColumn to ButtonColumn and issue resolved
Thank you all