In .cs : let say i have a variable string x;
how to assign value to variable x using javascript code.
thanks
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.
Jignesh TrivediPosted Jun 10, 2013, 12:27 AM
hi,
no, as per my knowledge, it is not possible directly because your server varible is handle by server only you can not assign value from javascript.
you can do it using hiddenfiled.
Please refer
http://www.jigar.net/howdoi/viewhtmlcontent336.aspx
hope this will help you.