一,后台方法: protected string CsharpVoid(string strCC) { return strCC; } javascript 调用 <script language="javascript"> var s = "<%=CsharpVoid("www.esoutong.com")%>"; document.write(s); </script>
二,
1.后代码: protected void CsharpVoid() { string strCC = "www.esoutong.com"; Response.Write(strCC); }
2.调用方法:CsharpVoid() <script language="javascript"> document.write("<%CsharpVoid();%>"); </script>
三,
把需要调用的函数写在服务器控件里,然后在javascript中加入<img src="/Images/OutliningIndicators/None.gif" align=top>document.getElementById("你控件ID").click();
时间的步伐有三种:未来姗姗来迟,现在像箭一样飞逝,过去永远静立不动.务请珍惜