天天看点

C# JS调用后台带参数方法

function Init()
 {
   var v = "中国";
   var s = '<%=CsharpVoid("'+v+'") %>';
   alert(s);
 }
           
protected string CsharpVoid(string strCC)
{
   strCC = "你好!" + strCC;
   return strCC;
}
           

转自:http://www.cnblogs.com/morningwang/archive/2008/04/07/1140340.html

继续阅读