i am using a JavaScript and it have the below code:
<script type="text/javascript">
var count = 0;
jQuery('td').click(function () {
if ($(this).hasClass('process')) {
count = count+100;
alert('count');
}
});
</script>
so if its click the value is added by 100 i check using an alert, now how to access the var count in my code-behind
You will need to store the count variable on a server-side control in order to do this.
Example:
Then, in your code-behind simply use: