I want to use a Javascript variable in C#, is it possible, how do I go about it?
Thanks
I want to use a Javascript variable in C#, is it possible, how do
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I believe you would be interested in the value held by the variable and to make it available to the C# code as you suggest it needs to be posted to the server.
So you can assign the value to a
HiddenField which you can retrieve at the server end and use the value