Sourabh Dhiman

Sourabh Dhiman

  • 2k
  • 49
  • 1k

Set Value in Temp Data.

Apr 18 2021 3:30 AM
I have try this code for set value in TempData.But i have face a issue
 
<script>
$(document).ready(function () {
debugger;
$('li').on('click', function () {
var id = $(this).attr('id');
TempData["CID"] = id;----Unexpected token =
});
});

Answers (7)