Angular 8 post formData to ASP.NET Core API cannot bind IEnumerable/List

As title says TypeScript model export interface RigheOrdiniBuoniSpesaData { id: number; id_ordine: number; id_taglio_buono_spesa: number; quantita: number; } which is part of another bigger object: export class OrdiniBuoniSpesaData { id: number; // OTHER FIELD // OTHER FIELD // OTHER FIELD righe_ordine: RigheOrdiniBuoniSpesaTableData; } Save method saveOrder(model: OrdiniBuoniSpesaData) { const headerPost: HttpHeaders = new HttpHeaders(); headerPost.set(‘Content-type’,…

Unable to evaluate expression because the code is optimized while printing a page in ASP.NET

I’m getting “unable to evaluate expression because the code is optimized” exception while printing the page. For printing I use string builder to append the HTML component and then put it into Literal and then literal assign to Session[“ctrl”]. I uses a page name Print.aspx and a helper function PrintHelper. private void PrintApplication(StudentDetails StudentData )…