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.
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 attend4days leftRegister
Jignesh TrivediRank #16 · 50.3K reputationPosted Jun 9, 2013, 8:27 PM EDT
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.