Sourabh Dhiman

Sourabh Dhiman

  • NA
  • 49
  • 5.6k

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)