I want to use a javascript variable to pass as a parameter to my class constructor in C#.
How can I translate the javascript variable ID to C# such that I am able to pass the value on User.IsOnLeave
?
<script type="text/javascript">
var ID;
var dateToEvaluate;
function convertVariable() {
*if (User.IsOnLeave(***ID***, dateToEvaluate)) {...}*
}
</script>
See Question&Answers more detail:os