在一般的 web application 中,服务端代码与前台html控件(NOT runat="Server")之间的交互如下:
后台:定义protected或者public变量X存储需要传到前台的值。
前台:使用方式:在js脚本中使用'<% =X %>'获取后台传入的值即可
这是其中的一种比较简单的方法,不仅可以传递值,甚至方法调用也可以,调用方法形如'<% =X("' + parameter + '") %>',其他方法可以google,百度之
other method :/questions/7089760/how-to-call-an-asp-net-c-sharp-method-using-javascript
/jQuery.ajax/
/insus/archive//01/22/2872329.html