Hello everyone how to get TempData value in the javascript file.
Loading
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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Uttam KumarPosted Apr 1, 2022, 12:36 AM
You can keep it in a hidden input field and pull it
var val = document.getElementById("hdnInputId").value;
Md SarfarajPosted Apr 4, 2022, 6:25 AM
Gajendra JangidPosted Apr 3, 2022, 5:47 PM
Muhammad Imran AnsariPosted Mar 31, 2022, 8:52 PM