Hello C# Corner,
I want to pass to two Variables (Data = x1, Charge = x2) from Cshtml page to Aspx Page.
Anybody with JavaScript help or Other language with code sample or online material.
Will be appreciated .
Thanks,
Beavon
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.
Kirtan ParmarPosted Mar 1, 2016, 1:37 PM
write this code on cshtml page :
localStorage.setItem('data1', 'value1');
and to get this value on aspx page write below code :
var data1 = localStorage.getItem('data1');