Is there any difference between
var stringValue = '<%=GetStringValue();%>';
and calling the same codebehind function via ajax?
Both take parameters easily enough, and seem to occur at the same point in the lifecycle (eg after the client is fully loaded, server tags do not preload). The only difference I can see is that ajax web methods have to be public static
while the static
can be omitted for a server tag.
Are there any security differences, and are the above assertions correct?