Hello everyone how to get TempData value in the javascript file.
Get value in javascript file.
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Hello everyone how to get TempData value in the javascript file.
Know the answer? Post it. Somebody with the same question will find it here.
Uttam KumarRank #1,076 · 1.8K reputationPosted Mar 31, 2022, 8:36 PM EDT
You can keep it in a hidden input field and pull it
var val = document.getElementById("hdnInputId").value;
Gajendra JangidRank #157 · 14.9K reputationPosted Apr 3, 2022, 1:47 PM EDT
Muhammad Imran AnsariRank #326 · 7.6K reputationPosted Mar 31, 2022, 4:52 PM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts