1、
javascript自动调用服务端方法
<script javascript="">
function aa()
{
alert("first");
var v = <%=TheServerMethod()%> //TheServerMethod()为服务端方法
alert("second");
}
</script>
运行程序时,会在Page_Load之前调用TheServerMethod()方法。并且 alert("first");和alert("second");不被调用。
2、
Page.ClientScript.GetCallbackEventReference可以在服务端回调javascript方法
发表于 @ 2008年05月31日 10:23:19|评论(loading...)|编辑