<script>
var returnstring= "<%= CodeBehindFunction() %>";
</script>
I need this
<script>
var returnstring= "<%= CodeBehindFunction(parameter) %>";
</script>
but error occurs that parameter does not exist in the current context.