This is a simple syntax question, but I haven't been able to find (or haven't known quite how to phrase the question in order to find) an answer.
I'm trying to pass a Javascript variable into a .NET script like so:
var name = '<%=GetName(' + String(pageid) + ') %>';
GetName is a server-side .NET function, obviously. I get an "Expression Expected" server error thrown when I attempt to use it in its present state.
What's the problem with my syntax? Thanks!