In onlaod event of form, it is called javascript method, inside javascipt it is using <%=%> to read value from session variable.

When the webgrid loads, it throws an error. Controls collection cotnains <% ...%>

If i remove <%=%>from javascript code, then it works fine. But i need to use <%=%>in javascript code.

how to resolve this issue.