04 2012 档案
摘要:方法一:1、首先建立一个按钮,在后台将调用或处理的内容写入button_click中;2、在前台写一个js函数,内容为document.getElementById("btn1").click();3、在前台或后台调用js函数,激发click事件,等于访问后台c#函数;方法二:1、函数声明为public 后台代码(把public改成protected也可以)public string ss(){return("a");}2、在html里用<%=fucntion()%>可以调用前台脚本<script language=javascript>var a =
阅读全文
摘要:<SCRIPT LANGUAGE="JavaScript"> <!-- String.prototype.Trim =function() { returnthis.replace(/(^\s*)|(\s*$)/g, ""); } String.prototype.LTrim =function() { returnthis.replace(/(^\s*)/g, ""); } String.prototype.RTrim =function() { returnthis.replace(/(\s*$)/g, &quo
阅读全文
摘要:一、目前在ASP.NET中页面传值共有这么几种方式:1、表单提交, <form action= "target.aspx" method = "post" name = "form1"><input name = "param1" value = "1111"/><input name = "param2" value = "2222"/> </form> .... form1.submit(); ....
阅读全文

浙公网安备 33010602011771号