Access String Value from TempData from Script Tag inside View – Jquery
I'm trying to access string value from TempData from the script tag inside .cshtml file. <script> var FromComTaskLibType = '@TempData["FromComTaskLibType"]'; console.log(FromComTaskLibType.toString()) </script> Using this, I am getting value as AAAA instead of getting like 'AAAA'. I have called them with…