<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.
<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.
You're trying to make use of a page method. look following link for help.
http://www.singingeels.com/Articles/Using_Page_Methods_in_ASPNET_AJAX.aspx