Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Unterminated string literal. Strings that start with a quotation mark (") must be terminated before the end of the line. However, strings that start with @ and a quotation mark (@") can span multiple lines. Closing HTML tags within a string literal may trigger this error message.
The below code snippet gives the above error 3rd last line. Can someone please help me out. It will be great help.
objData += $@"annotation: {{
titleText: ""{ann.titleText}"",
left: {{
type: ""{ann.Left_type}"",
text: ""{ann.Left_text}"",
updatedAt:""{ann.Left_image_UpdatedAt.ToString().Split(' ')[0]}"",
updatedBy:""{ann.Left_image_UpdatedById}"",
image: """ + Url.Action("GetFile", "home", new { filename = ann.Left_imageURL }) + $@""",
translateDate: ""{ann.Left_trans_UpdatedAt.ToString().Split(' ')[0]}"",
translateUser: ""{ann.Left_trans_UpdatedById}"",
imagetranslateFileURL:"""+Url.Action("GetFile", "home", new { filename = ann.Left_imagetranslateFileURL })+$@""",
}},
right: {{
type: ""{ann.Right_type}"",
text: ""{ann.Right_text}"",
updatedAt:""{ann.Right_image_UpdatedAt.ToString().Split(' ')[0]}"",
updatedBy:""{ann.Right_image_UpdatedById}"",
image: """ + Url.Action("GetFile", "home", new { filename = ann.Right_imageURL }) + $@""",
translateDate: ""{ann.Right_trans_UpdatedAt.ToString().Split(' ')[0]}"",
translateUser: ""{ann.Right_trans_UpdatedById}"",
imagetranslateFileURL: ""{ Url.Action("GetFile" , "home", new { filename = ann.Right_imagetranslateFileURL })}"" ,
}}
}}";