I have try this code for set value in TempData.But i have face a issue
$(document).ready(function () {
debugger;
$('li').on('click', function () {
var id = $(this).attr('id');
TempData["CID"] = id;----Unexpected token =
});
});
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Satya KarkiRank #78 · 24.6K reputationPosted Apr 18, 2021, 5:48 AM EDT
Rijwan AnsariRank #82 · 24.2K reputationPosted Apr 18, 2021, 9:32 AM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Apr 17, 2021, 11:48 PM EDT
Salman BegRank #284 · 8.8K reputationPosted Apr 18, 2021, 1:41 AM EDT
Hiesh KidechaRank #4,751 · 327 reputationPosted Apr 18, 2021, 2:05 AM EDT
Sourabh Dhiman32 reputationPosted Apr 18, 2021, 12:35 PM EDT
Rijwan AnsariRank #82 · 24.2K reputationPosted Apr 18, 2021, 1:13 PM EDT